16 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE 21 template<
typename T>
class SwigValueWrapper {
22 struct SwigMovePointer {
24 SwigMovePointer(T *p) : ptr(p) { }
25 ~SwigMovePointer() {
delete ptr; }
26 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0;
delete oldptr; ptr = rhs.ptr; rhs.ptr = 0;
return *
this; }
28 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
29 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
31 SwigValueWrapper() : pointer(0) { }
32 SwigValueWrapper& operator=(
const T& t) { SwigMovePointer tmp(
new T(t)); pointer = tmp;
return *
this; }
33 operator T&()
const {
return *pointer.ptr; }
34 T *operator&() {
return pointer.ptr; }
37 template <
typename T> T SwigValueInit() {
48 #ifndef SWIGTEMPLATEDISAMBIGUATOR 49 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) 50 # define SWIGTEMPLATEDISAMBIGUATOR template 51 # elif defined(__HP_aCC) 54 # define SWIGTEMPLATEDISAMBIGUATOR template 56 # define SWIGTEMPLATEDISAMBIGUATOR 62 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) 63 # define SWIGINLINE inline 71 # if defined(__GNUC__) 72 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) 73 # define SWIGUNUSED __attribute__ ((__unused__)) 78 # define SWIGUNUSED __attribute__ ((__unused__)) 84 #ifndef SWIG_MSC_UNSUPPRESS_4505 85 # if defined(_MSC_VER) 86 # pragma warning(disable : 4505) 90 #ifndef SWIGUNUSEDPARM 92 # define SWIGUNUSEDPARM(p) 94 # define SWIGUNUSEDPARM(p) p SWIGUNUSED 100 # define SWIGINTERN static SWIGUNUSED 104 #ifndef SWIGINTERNINLINE 105 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE 109 #if defined(__GNUC__) 110 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) 111 # ifndef GCC_HASCLASSVISIBILITY 112 # define GCC_HASCLASSVISIBILITY 118 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 119 # if defined(STATIC_LINKED) 122 # define SWIGEXPORT __declspec(dllexport) 125 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) 126 # define SWIGEXPORT __attribute__ ((visibility("default"))) 135 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 136 # define SWIGSTDCALL __stdcall 143 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) 144 # define _CRT_SECURE_NO_DEPRECATE 148 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) 149 # define _SCL_SECURE_NO_DEPRECATE 153 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) 154 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 162 #ifdef __INTEL_COMPILER 163 # pragma warning disable 592 167 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) 185 #define SWIG_RUNTIME_VERSION "4" 188 #ifdef SWIG_TYPE_TABLE 189 # define SWIG_QUOTE_STRING(x) #x 190 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) 191 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) 193 # define SWIG_TYPE_TABLE_NAME 206 # define SWIGRUNTIME SWIGINTERN 209 #ifndef SWIGRUNTIMEINLINE 210 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE 214 #ifndef SWIG_BUFFER_SIZE 215 # define SWIG_BUFFER_SIZE 1024 219 #define SWIG_POINTER_DISOWN 0x1 220 #define SWIG_CAST_NEW_MEMORY 0x2 223 #define SWIG_POINTER_OWN 0x1 306 #define SWIG_ERROR (-1) 307 #define SWIG_IsOK(r) (r >= 0) 308 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) 311 #define SWIG_CASTRANKLIMIT (1 << 8) 313 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) 315 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) 317 #define SWIG_BADOBJ (SWIG_ERROR) 318 #define SWIG_OLDOBJ (SWIG_OK) 319 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) 320 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) 322 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) 323 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) 324 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) 325 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) 326 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) 327 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) 330 #if defined(SWIG_CASTRANK_MODE) 331 # ifndef SWIG_TypeRank 332 # define SWIG_TypeRank unsigned long 334 # ifndef SWIG_MAXCASTRANK 335 # define SWIG_MAXCASTRANK (2) 337 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) 338 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) 339 SWIGINTERNINLINE
int SWIG_AddCast(
int r) {
340 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
342 SWIGINTERNINLINE
int SWIG_CheckState(
int r) {
343 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
346 # define SWIG_AddCast(r) (r) 347 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) 357 typedef void *(*swig_converter_func)(
void *,
int *);
364 swig_dycast_func dcast;
373 swig_converter_func converter;
398 SWIG_TypeNameComp(
const char *f1,
const char *l1,
399 const char *f2,
const char *l2) {
400 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
401 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
402 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
403 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
405 return (
int)((l1 - f1) - (l2 - f2));
413 SWIG_TypeCmp(
const char *nb,
const char *tb) {
415 const char* te = tb + strlen(tb);
417 while (equiv != 0 && *ne) {
418 for (nb = ne; *ne; ++ne) {
419 if (*ne ==
'|')
break;
421 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
432 SWIG_TypeEquiv(
const char *nb,
const char *tb) {
433 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
444 if (strcmp(iter->type->name, c) == 0) {
445 if (iter == ty->cast)
448 iter->prev->next = iter->next;
450 iter->next->prev = iter->prev;
451 iter->next = ty->cast;
453 if (ty->cast) ty->cast->prev = iter;
471 if (iter->type == from) {
472 if (iter == ty->cast)
475 iter->prev->next = iter->next;
477 iter->next->prev = iter->prev;
478 iter->next = ty->cast;
480 if (ty->cast) ty->cast->prev = iter;
493 SWIGRUNTIMEINLINE
void *
495 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
504 if (!ty || !ty->dcast)
return ty;
505 while (ty && (ty->dcast)) {
506 ty = (*ty->dcast)(ptr);
515 SWIGRUNTIMEINLINE
const char *
524 SWIGRUNTIME
const char *
530 if (!type)
return NULL;
531 if (type->str != NULL) {
532 const char *last_name = type->str;
534 for (s = type->str; *s; s++)
535 if (*s ==
'|') last_name = s+1;
549 ti->clientdata = clientdata;
552 if (!cast->converter) {
554 if (!tc->clientdata) {
555 SWIG_TypeClientData(tc, clientdata);
563 SWIG_TypeClientData(ti, clientdata);
583 size_t r = iter->size - 1;
586 size_t i = (l + r) >> 1;
587 const char *iname = iter->types[i]->name;
589 int compare = strcmp(name, iname);
591 return iter->types[i];
592 }
else if (compare < 0) {
598 }
else if (compare > 0) {
607 }
while (iter != end);
625 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
634 for (; i < iter->size; ++i) {
635 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
636 return iter->types[i];
639 }
while (iter != end);
650 SWIG_PackData(
char *c,
void *ptr,
size_t sz) {
651 static const char hex[17] =
"0123456789abcdef";
652 const unsigned char *u = (
unsigned char *) ptr;
653 const unsigned char *eu = u + sz;
654 for (; u != eu; ++u) {
655 unsigned char uu = *u;
656 *(c++) = hex[(uu & 0xf0) >> 4];
657 *(c++) = hex[uu & 0xf];
665 SWIGRUNTIME
const char *
666 SWIG_UnpackData(
const char *c,
void *ptr,
size_t sz) {
667 unsigned char *u = (
unsigned char *) ptr;
668 const unsigned char *eu = u + sz;
669 for (; u != eu; ++u) {
672 if ((d >=
'0') && (d <=
'9'))
673 uu = (
unsigned char)((d -
'0') << 4);
674 else if ((d >=
'a') && (d <=
'f'))
675 uu = (
unsigned char)((d - (
'a'-10)) << 4);
679 if ((d >=
'0') && (d <=
'9'))
680 uu |= (
unsigned char)(d -
'0');
681 else if ((d >=
'a') && (d <=
'f'))
682 uu |= (
unsigned char)(d - (
'a'-10));
694 SWIG_PackVoidPtr(
char *buff,
void *ptr,
const char *name,
size_t bsz) {
696 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
698 r = SWIG_PackData(r,&ptr,
sizeof(
void *));
699 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
704 SWIGRUNTIME
const char *
705 SWIG_UnpackVoidPtr(
const char *c,
void **ptr,
const char *name) {
707 if (strcmp(c,
"NULL") == 0) {
714 return SWIG_UnpackData(++c,ptr,
sizeof(
void *));
718 SWIG_PackDataName(
char *buff,
void *ptr,
size_t sz,
const char *name,
size_t bsz) {
720 size_t lname = (name ? strlen(name) : 0);
721 if ((2*sz + 2 + lname) > bsz)
return 0;
723 r = SWIG_PackData(r,ptr,sz);
725 strncpy(r,name,lname+1);
732 SWIGRUNTIME
const char *
733 SWIG_UnpackDataName(
const char *c,
void *ptr,
size_t sz,
const char *name) {
735 if (strcmp(c,
"NULL") == 0) {
742 return SWIG_UnpackData(++c,ptr,sz);
750 #define SWIG_UnknownError -1 751 #define SWIG_IOError -2 752 #define SWIG_RuntimeError -3 753 #define SWIG_IndexError -4 754 #define SWIG_TypeError -5 755 #define SWIG_DivisionByZero -6 756 #define SWIG_OverflowError -7 757 #define SWIG_SyntaxError -8 758 #define SWIG_ValueError -9 759 #define SWIG_SystemError -10 760 #define SWIG_AttributeError -11 761 #define SWIG_MemoryError -12 762 #define SWIG_NullReferenceError -13 767 #if PY_VERSION_HEX >= 0x03000000 769 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) 770 #define PyInt_Check(x) PyLong_Check(x) 771 #define PyInt_AsLong(x) PyLong_AsLong(x) 772 #define PyInt_FromLong(x) PyLong_FromLong(x) 773 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) 774 #define PyString_Check(name) PyBytes_Check(name) 775 #define PyString_FromString(x) PyUnicode_FromString(x) 776 #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) 777 #define PyString_AsString(str) PyBytes_AsString(str) 778 #define PyString_Size(str) PyBytes_Size(str) 779 #define PyString_InternFromString(key) PyUnicode_InternFromString(key) 780 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE 781 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) 782 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) 787 # define Py_TYPE(op) ((op)->ob_type) 792 #if PY_VERSION_HEX >= 0x03000000 793 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat 795 # define SWIG_Python_str_FromFormat PyString_FromFormat 803 SWIG_Python_str_AsChar(PyObject *str)
805 #if PY_VERSION_HEX >= 0x03000000 809 str = PyUnicode_AsUTF8String(str);
810 PyBytes_AsStringAndSize(str, &cstr, &len);
811 newstr = (
char *) malloc(len+1);
812 memcpy(newstr, cstr, len+1);
816 return PyString_AsString(str);
820 #if PY_VERSION_HEX >= 0x03000000 821 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) 823 # define SWIG_Python_str_DelForPy3(x) 828 SWIG_Python_str_FromChar(
const char *c)
830 #if PY_VERSION_HEX >= 0x03000000 831 return PyUnicode_FromString(c);
833 return PyString_FromString(c);
838 #if PY_VERSION_HEX < 0x02020000 839 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) 840 # define PyOS_snprintf _snprintf 842 # define PyOS_snprintf snprintf 847 #if PY_VERSION_HEX < 0x02020000 849 #ifndef SWIG_PYBUFFER_SIZE 850 # define SWIG_PYBUFFER_SIZE 1024 854 PyString_FromFormat(
const char *fmt, ...) {
856 char buf[SWIG_PYBUFFER_SIZE * 2];
859 res = vsnprintf(buf,
sizeof(buf), fmt, ap);
861 return (res < 0 || res >= (
int)
sizeof(buf)) ? 0 : PyString_FromString(buf);
866 # define PyObject_DEL PyObject_Del 870 #if PY_VERSION_HEX < 0x02020000 871 # ifndef PyExc_StopIteration 872 # define PyExc_StopIteration PyExc_RuntimeError 874 # ifndef PyObject_GenericGetAttr 875 # define PyObject_GenericGetAttr 0 880 #if PY_VERSION_HEX < 0x02010000 881 # ifndef Py_NotImplemented 882 # define Py_NotImplemented PyExc_RuntimeError 887 #if PY_VERSION_HEX < 0x02010000 888 # ifndef PyString_AsStringAndSize 889 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} 894 #if PY_VERSION_HEX < 0x02000000 895 # ifndef PySequence_Size 896 # define PySequence_Size PySequence_Length 901 #if PY_VERSION_HEX < 0x02030000 903 PyObject *PyBool_FromLong(
long ok)
905 PyObject *result = ok ? Py_True : Py_False;
914 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) 915 typedef int Py_ssize_t;
916 # define PY_SSIZE_T_MAX INT_MAX 917 # define PY_SSIZE_T_MIN INT_MIN 918 typedef inquiry lenfunc;
919 typedef intargfunc ssizeargfunc;
920 typedef intintargfunc ssizessizeargfunc;
921 typedef intobjargproc ssizeobjargproc;
922 typedef intintobjargproc ssizessizeobjargproc;
923 typedef getreadbufferproc readbufferproc;
924 typedef getwritebufferproc writebufferproc;
925 typedef getsegcountproc segcountproc;
926 typedef getcharbufferproc charbufferproc;
927 static long PyNumber_AsSsize_t (PyObject *x,
void *SWIGUNUSEDPARM(exc))
930 PyObject *i = PyNumber_Int(x);
932 result = PyInt_AsLong(i);
939 #if PY_VERSION_HEX < 0x02050000 940 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) 943 #if PY_VERSION_HEX < 0x02040000 944 #define Py_VISIT(op) \ 947 int vret = visit((op), arg); \ 954 #if PY_VERSION_HEX < 0x02030000 957 PyNumberMethods as_number;
958 PyMappingMethods as_mapping;
959 PySequenceMethods as_sequence;
960 PyBufferProcs as_buffer;
961 PyObject *name, *slots;
965 #if PY_VERSION_HEX < 0x02030000 966 typedef destructor freefunc;
969 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ 970 (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ 971 (PY_MAJOR_VERSION > 3)) 972 # define SWIGPY_USE_CAPSULE 973 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) 976 #if PY_VERSION_HEX < 0x03020000 977 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) 978 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) 985 SWIGRUNTIME PyObject*
986 SWIG_Python_ErrorType(
int code) {
989 case SWIG_MemoryError:
990 type = PyExc_MemoryError;
993 type = PyExc_IOError;
995 case SWIG_RuntimeError:
996 type = PyExc_RuntimeError;
998 case SWIG_IndexError:
999 type = PyExc_IndexError;
1001 case SWIG_TypeError:
1002 type = PyExc_TypeError;
1004 case SWIG_DivisionByZero:
1005 type = PyExc_ZeroDivisionError;
1007 case SWIG_OverflowError:
1008 type = PyExc_OverflowError;
1010 case SWIG_SyntaxError:
1011 type = PyExc_SyntaxError;
1013 case SWIG_ValueError:
1014 type = PyExc_ValueError;
1016 case SWIG_SystemError:
1017 type = PyExc_SystemError;
1019 case SWIG_AttributeError:
1020 type = PyExc_AttributeError;
1023 type = PyExc_RuntimeError;
1030 SWIG_Python_AddErrorMsg(
const char* mesg)
1033 PyObject *value = 0;
1034 PyObject *traceback = 0;
1036 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1039 PyObject *old_str = PyObject_Str(value);
1043 PyErr_Format(type,
"%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1044 SWIG_Python_str_DelForPy3(tmp);
1048 PyErr_SetString(PyExc_RuntimeError, mesg);
1052 #if defined(SWIG_PYTHON_NO_THREADS) 1053 # if defined(SWIG_PYTHON_THREADS) 1054 # undef SWIG_PYTHON_THREADS 1057 #if defined(SWIG_PYTHON_THREADS) 1058 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) 1059 # if (PY_VERSION_HEX >= 0x02030000) 1060 # define SWIG_PYTHON_USE_GIL 1063 # if defined(SWIG_PYTHON_USE_GIL) 1064 # ifndef SWIG_PYTHON_INITIALIZE_THREADS 1065 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() 1068 class SWIG_Python_Thread_Block {
1070 PyGILState_STATE state;
1072 void end() {
if (status) { PyGILState_Release(state); status =
false;} }
1073 SWIG_Python_Thread_Block() : status(
true), state(PyGILState_Ensure()) {}
1074 ~SWIG_Python_Thread_Block() { end(); }
1076 class SWIG_Python_Thread_Allow {
1078 PyThreadState *save;
1080 void end() {
if (status) { PyEval_RestoreThread(save); status =
false; }}
1081 SWIG_Python_Thread_Allow() : status(
true), save(PyEval_SaveThread()) {}
1082 ~SWIG_Python_Thread_Allow() { end(); }
1084 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block 1085 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() 1086 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow 1087 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() 1089 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() 1090 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) 1091 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() 1092 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) 1095 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) 1096 # define SWIG_PYTHON_INITIALIZE_THREADS 1098 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) 1099 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK 1101 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) 1102 # define SWIG_PYTHON_THREAD_END_BLOCK 1104 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) 1105 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW 1107 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) 1108 # define SWIG_PYTHON_THREAD_END_ALLOW 1112 # define SWIG_PYTHON_INITIALIZE_THREADS 1113 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK 1114 # define SWIG_PYTHON_THREAD_END_BLOCK 1115 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW 1116 # define SWIG_PYTHON_THREAD_END_ALLOW 1132 #define SWIG_PY_POINTER 4 1133 #define SWIG_PY_BINARY 5 1150 #if PY_VERSION_HEX >= 0x03000000 1151 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(
self), PyObject *func)
1153 return PyInstanceMethod_New(func);
1156 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(
self), PyObject *SWIGUNUSEDPARM(func))
1179 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) 1180 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) 1181 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) 1183 #ifdef SWIGPYTHON_BUILTIN 1184 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) 1186 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) 1189 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) 1191 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) 1192 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) 1193 #define swig_owntype int 1196 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) 1197 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) 1200 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) 1201 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) 1204 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) 1205 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) 1208 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) 1209 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) 1214 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) 1215 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) 1216 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) 1218 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj 1219 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg 1220 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) 1221 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 1222 #define SWIG_fail goto fail 1230 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1231 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1232 PyErr_SetObject(errtype, obj);
1234 SWIG_PYTHON_THREAD_END_BLOCK;
1238 SWIG_Python_SetErrorMsg(PyObject *errtype,
const char *msg) {
1239 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1240 PyErr_SetString(errtype, msg);
1241 SWIG_PYTHON_THREAD_END_BLOCK;
1244 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) 1248 #if defined(SWIGPYTHON_BUILTIN) 1251 SwigPyBuiltin_AddPublicSymbol(PyObject *seq,
const char *key) {
1252 PyObject *s = PyString_InternFromString(key);
1253 PyList_Append(seq, s);
1258 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface,
const char *name, PyObject *obj) {
1259 #if PY_VERSION_HEX < 0x02030000 1260 PyDict_SetItemString(d, (
char *)name, obj);
1262 PyDict_SetItemString(d, name, obj);
1265 if (public_interface)
1266 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1272 SWIG_Python_SetConstant(PyObject *d,
const char *name, PyObject *obj) {
1273 #if PY_VERSION_HEX < 0x02030000 1274 PyDict_SetItemString(d, (
char *)name, obj);
1276 PyDict_SetItemString(d, name, obj);
1285 SWIGINTERN PyObject*
1286 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1287 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) 1290 }
else if (result == Py_None) {
1294 if (!PyList_Check(result)) {
1295 PyObject *o2 = result;
1296 result = PyList_New(1);
1297 PyList_SetItem(result, 0, o2);
1299 PyList_Append(result,obj);
1308 }
else if (result == Py_None) {
1312 if (!PyTuple_Check(result)) {
1314 result = PyTuple_New(1);
1315 PyTuple_SET_ITEM(result, 0, o2);
1317 o3 = PyTuple_New(1);
1318 PyTuple_SET_ITEM(o3, 0, obj);
1320 result = PySequence_Concat(o2, o3);
1330 SWIGINTERN Py_ssize_t
1331 SWIG_Python_UnpackTuple(PyObject *args,
const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1337 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got none",
1338 name, (min == max ?
"" :
"at least "), (
int)min);
1342 if (!PyTuple_Check(args)) {
1343 if (min <= 1 && max >= 1) {
1346 for (i = 1; i < max; ++i) {
1351 PyErr_SetString(PyExc_SystemError,
"UnpackTuple() argument list is not a tuple");
1354 Py_ssize_t l = PyTuple_GET_SIZE(args);
1356 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1357 name, (min == max ?
"" :
"at least "), (
int)min, (
int)l);
1359 }
else if (l > max) {
1360 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1361 name, (min == max ?
"" :
"at most "), (
int)max, (
int)l);
1365 for (i = 0; i < l; ++i) {
1366 objs[i] = PyTuple_GET_ITEM(args, i);
1368 for (; l < max; ++l) {
1377 #if PY_VERSION_HEX >= 0x02020000 1378 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); 1380 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); 1388 #define SWIG_STATIC_POINTER(var) var 1390 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var 1398 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) 1399 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) 1401 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) 1403 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) 1404 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) 1411 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 1412 # ifndef SWIG_PYTHON_NO_BUILD_NONE 1413 # ifndef SWIG_PYTHON_BUILD_NONE 1414 # define SWIG_PYTHON_BUILD_NONE 1419 #ifdef SWIG_PYTHON_BUILD_NONE 1422 # define Py_None SWIG_Py_None() 1424 SWIGRUNTIMEINLINE PyObject *
1427 PyObject *none = Py_BuildValue((
char*)
"");
1431 SWIGRUNTIME PyObject *
1434 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1441 SWIGRUNTIMEINLINE PyObject *
1444 PyObject *none = Py_None;
1458 PyTypeObject *pytype;
1461 SWIGRUNTIMEINLINE
int 1465 return data ? data->implicitconv : 0;
1468 SWIGRUNTIMEINLINE PyObject *
1471 PyObject *klass = data ? data->klass : 0;
1472 return (klass ? klass : PyExc_RuntimeError);
1477 SwigPyClientData_New(PyObject* obj)
1485 Py_INCREF(data->klass);
1487 if (PyClass_Check(obj)) {
1489 data->newargs = obj;
1492 #if (PY_VERSION_HEX < 0x02020000) 1495 data->newraw = PyObject_GetAttrString(data->klass, (
char *)
"__new__");
1498 Py_INCREF(data->newraw);
1499 data->newargs = PyTuple_New(1);
1500 PyTuple_SetItem(data->newargs, 0, obj);
1502 data->newargs = obj;
1504 Py_INCREF(data->newargs);
1507 data->destroy = PyObject_GetAttrString(data->klass, (
char *)
"__swig_destroy__");
1508 if (PyErr_Occurred()) {
1512 if (data->destroy) {
1514 Py_INCREF(data->destroy);
1515 flags = PyCFunction_GET_FLAGS(data->destroy);
1517 data->delargs = !(flags & (METH_O));
1524 data->implicitconv = 0;
1532 Py_XDECREF(data->newraw);
1533 Py_XDECREF(data->newargs);
1534 Py_XDECREF(data->destroy);
1545 #ifdef SWIGPYTHON_BUILTIN 1551 #ifdef SWIGPYTHON_BUILTIN 1553 SWIGRUNTIME PyObject *
1554 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1559 sobj->dict = PyDict_New();
1561 Py_INCREF(sobj->dict);
1567 SWIGRUNTIME PyObject *
1570 return PyLong_FromVoidPtr(v->ptr);
1573 SWIGRUNTIME PyObject *
1576 PyObject *res = NULL;
1577 PyObject *args = PyTuple_New(1);
1579 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1580 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1582 #if PY_VERSION_HEX >= 0x03000000 1583 res = PyUnicode_Format(ofmt,args);
1585 res = PyString_Format(ofmt,args);
1595 SWIGRUNTIME PyObject *
1598 return SwigPyObject_format(
"%o",v);
1601 SWIGRUNTIME PyObject *
1604 return SwigPyObject_format(
"%x",v);
1607 SWIGRUNTIME PyObject *
1614 const char *name = SWIG_TypePrettyName(v->ty);
1615 PyObject *repr = SWIG_Python_str_FromFormat(
"<Swig Object of type '%s' at %p>", (name ? name :
"unknown"), (
void *)v);
1618 PyObject *nrep = SwigPyObject_repr((
SwigPyObject *)v->next);
1620 PyObject *nrep = SwigPyObject_repr((
SwigPyObject *)v->next, args);
1622 # if PY_VERSION_HEX >= 0x03000000 1623 PyObject *joined = PyUnicode_Concat(repr, nrep);
1628 PyString_ConcatAndDel(&repr,nrep);
1639 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1643 SWIGRUNTIME PyObject*
1647 if( op != Py_EQ && op != Py_NE ) {
1648 Py_INCREF(Py_NotImplemented);
1649 return Py_NotImplemented;
1651 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1656 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(
void);
1658 #ifdef SWIGPYTHON_BUILTIN 1660 SWIGRUNTIME PyTypeObject*
1661 SwigPyObject_type(
void) {
1663 assert(SwigPyObject_stype);
1670 SWIGRUNTIME PyTypeObject*
1671 SwigPyObject_type(
void) {
1672 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1677 SWIGRUNTIMEINLINE
int 1678 SwigPyObject_Check(PyObject *op) {
1679 #ifdef SWIGPYTHON_BUILTIN 1680 PyTypeObject *target_tp = SwigPyObject_type();
1681 if (PyType_IsSubtype(op->ob_type, target_tp))
1683 return (strcmp(op->ob_type->tp_name,
"SwigPyObject") == 0);
1685 return (Py_TYPE(op) == SwigPyObject_type())
1686 || (strcmp(Py_TYPE(op)->tp_name,
"SwigPyObject") == 0);
1690 SWIGRUNTIME PyObject *
1694 SwigPyObject_dealloc(PyObject *v)
1697 PyObject *next = sobj->next;
1698 if (sobj->own == SWIG_POINTER_OWN) {
1701 PyObject *destroy = data ? data->destroy : 0;
1713 PyObject *val = NULL, *type = NULL, *tb = NULL;
1714 PyErr_Fetch(&val, &type, &tb);
1716 if (data->delargs) {
1718 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1719 res = SWIG_Python_CallFunctor(destroy, tmp);
1722 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1723 PyObject *mself = PyCFunction_GET_SELF(destroy);
1724 res = ((*meth)(mself, v));
1727 PyErr_WriteUnraisable(destroy);
1729 PyErr_Restore(val, type, tb);
1733 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) 1735 const char *name = SWIG_TypePrettyName(ty);
1736 printf(
"swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name :
"unknown"));
1744 SWIGRUNTIME PyObject*
1745 SwigPyObject_append(PyObject* v, PyObject* next)
1750 if (!PyArg_ParseTuple(next,(
char *)
"O:append", &tmp))
return NULL;
1753 if (!SwigPyObject_Check(next)) {
1754 PyErr_SetString(PyExc_TypeError,
"Attempt to append a non SwigPyObject");
1759 return SWIG_Py_Void();
1762 SWIGRUNTIME PyObject*
1764 SwigPyObject_next(PyObject* v)
1766 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1771 Py_INCREF(sobj->next);
1774 return SWIG_Py_Void();
1778 SWIGINTERN PyObject*
1780 SwigPyObject_disown(PyObject *v)
1782 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1787 return SWIG_Py_Void();
1790 SWIGINTERN PyObject*
1792 SwigPyObject_acquire(PyObject *v)
1794 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1798 sobj->own = SWIG_POINTER_OWN;
1799 return SWIG_Py_Void();
1802 SWIGINTERN PyObject*
1803 SwigPyObject_own(PyObject *v, PyObject *args)
1806 #if (PY_VERSION_HEX < 0x02020000) 1807 if (!PyArg_ParseTuple(args,(
char *)
"|O:own",&val))
1808 #elif (PY_VERSION_HEX < 0x02050000) 1809 if (!PyArg_UnpackTuple(args, (
char *)
"own", 0, 1, &val))
1811 if (!PyArg_UnpackTuple(args,
"own", 0, 1, &val))
1819 PyObject *obj = PyBool_FromLong(sobj->own);
1822 if (PyObject_IsTrue(val)) {
1823 SwigPyObject_acquire(v);
1825 SwigPyObject_disown(v);
1828 if (PyObject_IsTrue(val)) {
1829 SwigPyObject_acquire(v,args);
1831 SwigPyObject_disown(v,args);
1841 swigobject_methods[] = {
1842 {(
char *)
"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (
char *)
"releases ownership of the pointer"},
1843 {(
char *)
"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (
char *)
"acquires ownership of the pointer"},
1844 {(
char *)
"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (
char *)
"returns/sets ownership of the pointer"},
1845 {(
char *)
"append", (PyCFunction)SwigPyObject_append, METH_O, (
char *)
"appends another 'this' object"},
1846 {(
char *)
"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (
char *)
"returns the next 'this' object"},
1847 {(
char *)
"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (
char *)
"returns object representation"},
1852 swigobject_methods[] = {
1853 {(
char *)
"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (
char *)
"releases ownership of the pointer"},
1854 {(
char *)
"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (
char *)
"acquires ownership of the pointer"},
1855 {(
char *)
"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (
char *)
"returns/sets ownership of the pointer"},
1856 {(
char *)
"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (
char *)
"appends another 'this' object"},
1857 {(
char *)
"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (
char *)
"returns the next 'this' object"},
1858 {(
char *)
"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (
char *)
"returns object representation"},
1863 #if PY_VERSION_HEX < 0x02020000 1864 SWIGINTERN PyObject *
1867 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1871 SWIGRUNTIME PyTypeObject*
1872 SwigPyObject_TypeOnce(
void) {
1873 static char swigobject_doc[] =
"Swig object carries a C/C++ instance pointer";
1875 static PyNumberMethods SwigPyObject_as_number = {
1880 #
if PY_VERSION_HEX < 0x03000000
1896 #
if PY_VERSION_HEX < 0x03000000
1899 (unaryfunc)SwigPyObject_long,
1900 #if PY_VERSION_HEX < 0x03000000 1901 (unaryfunc)SwigPyObject_long,
1906 #if PY_VERSION_HEX < 0x03000000 1907 (unaryfunc)SwigPyObject_oct,
1908 (unaryfunc)SwigPyObject_hex,
1910 #if PY_VERSION_HEX >= 0x03050000 1911 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1912 #elif PY_VERSION_HEX >= 0x03000000 1913 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1914 #elif PY_VERSION_HEX >= 0x02050000 1915 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1916 #elif PY_VERSION_HEX >= 0x02020000 1917 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1918 #elif PY_VERSION_HEX >= 0x02000000 1919 0,0,0,0,0,0,0,0,0,0,0
1923 static PyTypeObject swigpyobject_type;
1924 static int type_init = 0;
1926 const PyTypeObject tmp = {
1928 #if PY_VERSION_HEX >= 0x03000000 1929 PyVarObject_HEAD_INIT(NULL, 0)
1931 PyObject_HEAD_INIT(NULL)
1934 (
char *)
"SwigPyObject",
1937 (destructor)SwigPyObject_dealloc,
1939 #
if PY_VERSION_HEX < 0x02020000
1940 (getattrfunc)SwigPyObject_getattr,
1945 #if PY_VERSION_HEX >= 0x03000000 1948 (cmpfunc)SwigPyObject_compare,
1950 (reprfunc)SwigPyObject_repr,
1951 &SwigPyObject_as_number,
1957 PyObject_GenericGetAttr,
1964 (richcmpfunc)SwigPyObject_richcompare,
1966 #
if PY_VERSION_HEX >= 0x02020000
1988 #
if PY_VERSION_HEX >= 0x02030000
1991 #
if PY_VERSION_HEX >= 0x02060000
1994 #
if PY_VERSION_HEX >= 0x03040000
2001 #
if PY_VERSION_HEX >= 0x02050000
2007 swigpyobject_type = tmp;
2009 #if PY_VERSION_HEX < 0x02020000 2010 swigpyobject_type.ob_type = &PyType_Type;
2012 if (PyType_Ready(&swigpyobject_type) < 0)
2016 return &swigpyobject_type;
2019 SWIGRUNTIME PyObject *
2029 return (PyObject *)sobj;
2044 SwigPyPacked_print(
SwigPyPacked *v, FILE *fp,
int SWIGUNUSEDPARM(flags))
2046 char result[SWIG_BUFFER_SIZE];
2047 fputs(
"<Swig Packed ", fp);
2048 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))) {
2052 fputs(v->ty->name,fp);
2057 SWIGRUNTIME PyObject *
2060 char result[SWIG_BUFFER_SIZE];
2061 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))) {
2062 return SWIG_Python_str_FromFormat(
"<Swig Packed at %s%s>", result, v->ty->name);
2064 return SWIG_Python_str_FromFormat(
"<Swig Packed %s>", v->ty->name);
2068 SWIGRUNTIME PyObject *
2071 char result[SWIG_BUFFER_SIZE];
2072 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))){
2073 return SWIG_Python_str_FromFormat(
"%s%s", result, v->ty->name);
2075 return SWIG_Python_str_FromChar(v->ty->name);
2084 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2085 return s ? s : strncmp((
char *)v->pack, (
char *)w->pack, 2*v->size);
2088 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(
void);
2090 SWIGRUNTIME PyTypeObject*
2091 SwigPyPacked_type(
void) {
2092 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2096 SWIGRUNTIMEINLINE
int 2097 SwigPyPacked_Check(PyObject *op) {
2098 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2099 || (strcmp((op)->ob_type->tp_name,
"SwigPyPacked") == 0);
2103 SwigPyPacked_dealloc(PyObject *v)
2105 if (SwigPyPacked_Check(v)) {
2112 SWIGRUNTIME PyTypeObject*
2113 SwigPyPacked_TypeOnce(
void) {
2114 static char swigpacked_doc[] =
"Swig object carries a C/C++ instance pointer";
2115 static PyTypeObject swigpypacked_type;
2116 static int type_init = 0;
2118 const PyTypeObject tmp = {
2120 #if PY_VERSION_HEX>=0x03000000 2121 PyVarObject_HEAD_INIT(NULL, 0)
2123 PyObject_HEAD_INIT(NULL)
2126 (
char *)
"SwigPyPacked",
2129 (destructor)SwigPyPacked_dealloc,
2130 (printfunc)SwigPyPacked_print,
2133 #if PY_VERSION_HEX>=0x03000000 2136 (cmpfunc)SwigPyPacked_compare,
2138 (reprfunc)SwigPyPacked_repr,
2144 (reprfunc)SwigPyPacked_str,
2145 PyObject_GenericGetAttr,
2154 #
if PY_VERSION_HEX >= 0x02020000
2176 #
if PY_VERSION_HEX >= 0x02030000
2179 #
if PY_VERSION_HEX >= 0x02060000
2182 #
if PY_VERSION_HEX >= 0x03040000
2189 #
if PY_VERSION_HEX >= 0x02050000
2195 swigpypacked_type = tmp;
2197 #if PY_VERSION_HEX < 0x02020000 2198 swigpypacked_type.ob_type = &PyType_Type;
2200 if (PyType_Ready(&swigpypacked_type) < 0)
2204 return &swigpypacked_type;
2207 SWIGRUNTIME PyObject *
2212 void *pack = malloc(size);
2214 memcpy(pack, ptr, size);
2219 PyObject_DEL((PyObject *) sobj);
2223 return (PyObject *) sobj;
2227 SwigPyPacked_UnpackData(PyObject *obj,
void *ptr,
size_t size)
2229 if (SwigPyPacked_Check(obj)) {
2231 if (sobj->size != size)
return 0;
2232 memcpy(ptr, sobj->pack, size);
2243 SWIGRUNTIMEINLINE PyObject *
2246 return SWIG_Python_str_FromChar(
"this");
2249 static PyObject *swig_this = NULL;
2251 SWIGRUNTIME PyObject *
2254 if (swig_this == NULL)
2255 swig_this = _SWIG_This();
2262 #if PY_VERSION_HEX>=0x03000000 2263 #define SWIG_PYTHON_SLOW_GETSET_THIS 2267 SWIG_Python_GetSwigThis(PyObject *pyobj)
2271 if (SwigPyObject_Check(pyobj))
2274 #ifdef SWIGPYTHON_BUILTIN 2276 # ifdef PyWeakref_CheckProxy 2277 if (PyWeakref_CheckProxy(pyobj)) {
2278 pyobj = PyWeakref_GET_OBJECT(pyobj);
2279 if (pyobj && SwigPyObject_Check(pyobj))
2288 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) 2289 if (PyInstance_Check(pyobj)) {
2290 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2292 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2293 if (dictptr != NULL) {
2294 PyObject *dict = *dictptr;
2295 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2297 #ifdef PyWeakref_CheckProxy 2298 if (PyWeakref_CheckProxy(pyobj)) {
2299 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2300 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2303 obj = PyObject_GetAttr(pyobj,SWIG_This());
2307 if (PyErr_Occurred()) PyErr_Clear();
2313 obj = PyObject_GetAttr(pyobj,SWIG_This());
2317 if (PyErr_Occurred()) PyErr_Clear();
2321 if (obj && !SwigPyObject_Check(obj)) {
2324 return SWIG_Python_GetSwigThis(obj);
2333 SWIG_Python_AcquirePtr(PyObject *obj,
int own) {
2334 if (own == SWIG_POINTER_OWN) {
2337 int oldown = sobj->own;
2348 SWIG_Python_ConvertPtrAndOwn(PyObject *obj,
void **ptr,
swig_type_info *ty,
int flags,
int *own) {
2351 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2355 if (obj == Py_None && !implicit_conv) {
2363 sobj = SWIG_Python_GetSwigThis(obj);
2367 void *vptr = sobj->ptr;
2372 if (ptr) *ptr = vptr;
2381 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2382 if (newmemory == SWIG_CAST_NEW_MEMORY) {
2385 *own = *own | SWIG_CAST_NEW_MEMORY;
2392 if (ptr) *ptr = vptr;
2398 *own = *own | sobj->own;
2399 if (flags & SWIG_POINTER_DISOWN) {
2404 if (implicit_conv) {
2406 if (data && !data->implicitconv) {
2407 PyObject *klass = data->klass;
2410 data->implicitconv = 1;
2411 impconv = SWIG_Python_CallFunctor(klass, obj);
2412 data->implicitconv = 0;
2413 if (PyErr_Occurred()) {
2421 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2422 if (SWIG_IsOK(res)) {
2427 res = SWIG_AddCast(res);
2428 res = SWIG_AddNewMask(res);
2430 res = SWIG_AddCast(res);
2439 if (!SWIG_IsOK(res) && obj == Py_None) {
2442 if (PyErr_Occurred())
2453 SWIG_Python_ConvertFunctionPtr(PyObject *obj,
void **ptr,
swig_type_info *ty) {
2454 if (!PyCFunction_Check(obj)) {
2455 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2460 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2461 const char *desc = doc ? strstr(doc,
"swig_ptr: ") : 0;
2463 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2470 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2485 SWIG_Python_ConvertPacked(PyObject *obj,
void *ptr,
size_t sz,
swig_type_info *ty) {
2487 if (!to)
return SWIG_ERROR;
2492 if (!tc)
return SWIG_ERROR;
2507 SWIGRUNTIME PyObject*
2510 #if (PY_VERSION_HEX >= 0x02020000) 2512 PyObject *newraw = data->newraw;
2514 inst = PyObject_Call(newraw, data->newargs, NULL);
2516 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2517 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2518 if (dictptr != NULL) {
2519 PyObject *dict = *dictptr;
2521 dict = PyDict_New();
2523 PyDict_SetItem(dict, SWIG_This(), swig_this);
2527 PyObject *key = SWIG_This();
2528 PyObject_SetAttr(inst, key, swig_this);
2532 #if PY_VERSION_HEX >= 0x03000000 2533 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2535 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2536 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2539 PyObject *dict = PyDict_New();
2541 PyDict_SetItem(dict, SWIG_This(), swig_this);
2542 inst = PyInstance_NewRaw(data->newargs, dict);
2549 #if (PY_VERSION_HEX >= 0x02010000) 2551 PyObject *dict = PyDict_New();
2553 PyDict_SetItem(dict, SWIG_This(), swig_this);
2554 inst = PyInstance_NewRaw(data->newargs, dict);
2557 return (PyObject *) inst;
2559 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2563 inst->in_class = (PyClassObject *)data->newargs;
2564 Py_INCREF(inst->in_class);
2565 inst->in_dict = PyDict_New();
2566 if (inst->in_dict == NULL) {
2570 #ifdef Py_TPFLAGS_HAVE_WEAKREFS 2571 inst->in_weakreflist = NULL;
2573 #ifdef Py_TPFLAGS_GC 2574 PyObject_GC_Init(inst);
2576 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2577 return (PyObject *) inst;
2583 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2586 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2587 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2588 if (dictptr != NULL) {
2591 dict = PyDict_New();
2594 PyDict_SetItem(dict, SWIG_This(), swig_this);
2598 dict = PyObject_GetAttrString(inst, (
char*)
"__dict__");
2599 PyDict_SetItem(dict, SWIG_This(), swig_this);
2604 SWIGINTERN PyObject *
2605 SWIG_Python_InitShadowInstance(PyObject *args) {
2607 if (!SWIG_Python_UnpackTuple(args,
"swiginit", 2, 2, obj)) {
2612 SwigPyObject_append((PyObject*) sthis, obj[1]);
2614 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2616 return SWIG_Py_Void();
2622 SWIGRUNTIME PyObject *
2623 SWIG_Python_NewPointerObj(PyObject *
self,
void *ptr,
swig_type_info *type,
int flags) {
2629 return SWIG_Py_Void();
2632 own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2633 if (clientdata && clientdata->pytype) {
2635 if (flags & SWIG_BUILTIN_TP_INIT) {
2638 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2639 while (newobj->next)
2641 newobj->next = next_self;
2643 #ifdef SWIGPYTHON_BUILTIN 2648 newobj = PyObject_New(
SwigPyObject, clientdata->pytype);
2649 #ifdef SWIGPYTHON_BUILTIN 2658 return (PyObject*) newobj;
2660 return SWIG_Py_Void();
2663 assert(!(flags & SWIG_BUILTIN_TP_INIT));
2665 robj = SwigPyObject_New(ptr, type, own);
2666 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2667 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2676 SWIGRUNTIMEINLINE PyObject *
2677 SWIG_Python_NewPackedObj(
void *ptr,
size_t sz,
swig_type_info *type) {
2678 return ptr ? SwigPyPacked_New((
void *) ptr, sz, type) : SWIG_Py_Void();
2685 #ifdef SWIG_LINK_RUNTIME 2686 void *SWIG_ReturnGlobalTypeList(
void *);
2690 SWIG_Python_GetModule(
void *SWIGUNUSEDPARM(clientdata)) {
2691 static void *type_pointer = (
void *)0;
2693 if (!type_pointer) {
2694 #ifdef SWIG_LINK_RUNTIME 2695 type_pointer = SWIG_ReturnGlobalTypeList((
void *)0);
2697 # ifdef SWIGPY_USE_CAPSULE 2698 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2700 type_pointer = PyCObject_Import((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION,
2701 (
char*)
"type_pointer" SWIG_TYPE_TABLE_NAME);
2703 if (PyErr_Occurred()) {
2705 type_pointer = (
void *)0;
2712 #if PY_MAJOR_VERSION < 2 2716 PyModule_AddObject(PyObject *m,
char *name, PyObject *o)
2719 if (!PyModule_Check(m)) {
2720 PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs module as first arg");
2724 PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs non-NULL value");
2728 dict = PyModule_GetDict(m);
2731 PyErr_Format(PyExc_SystemError,
"module '%s' has no __dict__",
2732 PyModule_GetName(m));
2735 if (PyDict_SetItemString(dict, name, o))
2743 #ifdef SWIGPY_USE_CAPSULE 2744 SWIG_Python_DestroyModule(PyObject *obj)
2746 SWIG_Python_DestroyModule(
void *vptr)
2749 #ifdef SWIGPY_USE_CAPSULE 2756 for (i =0; i < swig_module->size; ++i) {
2760 if (data) SwigPyClientData_Del(data);
2763 Py_DECREF(SWIG_This());
2769 #if PY_VERSION_HEX >= 0x03000000 2771 PyObject *module = PyImport_AddModule((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION);
2773 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };
2774 PyObject *module = Py_InitModule((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2776 #ifdef SWIGPY_USE_CAPSULE 2777 PyObject *pointer = PyCapsule_New((
void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2778 if (pointer && module) {
2779 PyModule_AddObject(module, (
char*)
"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2781 Py_XDECREF(pointer);
2784 PyObject *pointer = PyCObject_FromVoidPtr((
void *) swig_module, SWIG_Python_DestroyModule);
2785 if (pointer && module) {
2786 PyModule_AddObject(module, (
char*)
"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2788 Py_XDECREF(pointer);
2794 SWIGRUNTIME PyObject *
2795 SWIG_Python_TypeCache(
void) {
2796 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2801 SWIG_Python_TypeQuery(
const char *type)
2803 PyObject *cache = SWIG_Python_TypeCache();
2804 PyObject *key = SWIG_Python_str_FromChar(type);
2805 PyObject *obj = PyDict_GetItem(cache, key);
2808 #ifdef SWIGPY_USE_CAPSULE 2815 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2817 #ifdef SWIGPY_USE_CAPSULE 2818 obj = PyCapsule_New((
void*) descriptor, NULL, NULL);
2820 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2822 PyDict_SetItem(cache, key, obj);
2833 #define SWIG_POINTER_EXCEPTION 0 2834 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) 2835 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) 2838 SWIG_Python_AddErrMesg(
const char* mesg,
int infront)
2840 if (PyErr_Occurred()) {
2842 PyObject *value = 0;
2843 PyObject *traceback = 0;
2844 PyErr_Fetch(&type, &value, &traceback);
2847 PyObject *old_str = PyObject_Str(value);
2851 PyErr_Format(type,
"%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2853 PyErr_Format(type,
"%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2855 SWIG_Python_str_DelForPy3(tmp);
2865 SWIG_Python_ArgFail(
int argnum)
2867 if (PyErr_Occurred()) {
2870 PyOS_snprintf(mesg,
sizeof(mesg),
"argument number %d:", argnum);
2871 return SWIG_Python_AddErrMesg(mesg, 1);
2877 SWIGRUNTIMEINLINE
const char *
2878 SwigPyObject_GetDesc(PyObject *
self)
2882 return ty ? ty->str :
"";
2886 SWIG_Python_TypeError(
const char *type, PyObject *obj)
2889 #if defined(SWIG_COBJECT_TYPES) 2890 if (obj && SwigPyObject_Check(obj)) {
2891 const char *otype = (
const char *) SwigPyObject_GetDesc(obj);
2893 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, 'SwigPyObject(%s)' is received",
2900 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2902 PyObject *str = PyObject_Str(obj);
2903 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2905 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s(%s)' is received",
2907 SWIG_Python_str_DelForPy3(cstr);
2909 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s' is received",
2916 PyErr_Format(PyExc_TypeError,
"a '%s' is expected", type);
2918 PyErr_Format(PyExc_TypeError,
"unexpected type is received");
2925 SWIG_Python_MustGetPtr(PyObject *obj,
swig_type_info *ty,
int SWIGUNUSEDPARM(argnum),
int flags) {
2927 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2929 #if SWIG_POINTER_EXCEPTION 2931 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2932 SWIG_Python_ArgFail(argnum);
2939 #ifdef SWIGPYTHON_BUILTIN 2941 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2942 PyTypeObject *tp = obj->ob_type;
2944 PyObject *encoded_name;
2948 # ifdef Py_USING_UNICODE 2949 if (PyString_Check(name)) {
2950 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2953 }
else if (!PyUnicode_Check(name))
2955 if (!PyString_Check(name))
2958 PyErr_Format(PyExc_TypeError,
"attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2965 if (PyType_Ready(tp) < 0)
2969 descr = _PyType_Lookup(tp, name);
2972 f = descr->ob_type->tp_descr_set;
2974 if (PyString_Check(name)) {
2975 encoded_name = name;
2978 encoded_name = PyUnicode_AsUTF8String(name);
2980 PyErr_Format(PyExc_AttributeError,
"'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2981 Py_DECREF(encoded_name);
2983 res = f(descr, obj, value);
2999 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 3001 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 3007 #define SWIGTYPE_p_Afi swig_types[0] 3008 #define SWIGTYPE_p_BgpOutHandler swig_types[1] 3009 #define SWIGTYPE_p_BgpRib4 swig_types[2] 3010 #define SWIGTYPE_p_BgpRib6 swig_types[3] 3011 #define SWIGTYPE_p_Clock swig_types[4] 3012 #define SWIGTYPE_p_char swig_types[5] 3013 #define SWIGTYPE_p_int swig_types[6] 3014 #define SWIGTYPE_p_libbgp__BgpAsPathSegment swig_types[7] 3015 #define SWIGTYPE_p_libbgp__BgpBadMessage swig_types[8] 3016 #define SWIGTYPE_p_libbgp__BgpCapability swig_types[9] 3017 #define SWIGTYPE_p_libbgp__BgpCapability4BytesAsn swig_types[10] 3018 #define SWIGTYPE_p_libbgp__BgpCapabilityMpBgp swig_types[11] 3019 #define SWIGTYPE_p_libbgp__BgpCapabilityUnknow swig_types[12] 3020 #define SWIGTYPE_p_libbgp__BgpConfig swig_types[13] 3021 #define SWIGTYPE_p_libbgp__BgpFilterRule swig_types[14] 3022 #define SWIGTYPE_p_libbgp__BgpFilterRuleAsPath swig_types[15] 3023 #define SWIGTYPE_p_libbgp__BgpFilterRuleCommunity swig_types[16] 3024 #define SWIGTYPE_p_libbgp__BgpFilterRuleRoute4 swig_types[17] 3025 #define SWIGTYPE_p_libbgp__BgpFilterRuleRoute6 swig_types[18] 3026 #define SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t swig_types[19] 3027 #define SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t swig_types[20] 3028 #define SWIGTYPE_p_libbgp__BgpFilterRules swig_types[21] 3029 #define SWIGTYPE_p_libbgp__BgpFsm swig_types[22] 3030 #define SWIGTYPE_p_libbgp__BgpKeepaliveMessage swig_types[23] 3031 #define SWIGTYPE_p_libbgp__BgpLogHandler swig_types[24] 3032 #define SWIGTYPE_p_libbgp__BgpMessage swig_types[25] 3033 #define SWIGTYPE_p_libbgp__BgpNotificationMessage swig_types[26] 3034 #define SWIGTYPE_p_libbgp__BgpOpenMessage swig_types[27] 3035 #define SWIGTYPE_p_libbgp__BgpOutHandler swig_types[28] 3036 #define SWIGTYPE_p_libbgp__BgpPacket swig_types[29] 3037 #define SWIGTYPE_p_libbgp__BgpPathAttrib swig_types[30] 3038 #define SWIGTYPE_p_libbgp__BgpPathAttribAggregator swig_types[31] 3039 #define SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator swig_types[32] 3040 #define SWIGTYPE_p_libbgp__BgpPathAttribAs4Path swig_types[33] 3041 #define SWIGTYPE_p_libbgp__BgpPathAttribAsPath swig_types[34] 3042 #define SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate swig_types[35] 3043 #define SWIGTYPE_p_libbgp__BgpPathAttribCommunity swig_types[36] 3044 #define SWIGTYPE_p_libbgp__BgpPathAttribLocalPref swig_types[37] 3045 #define SWIGTYPE_p_libbgp__BgpPathAttribMed swig_types[38] 3046 #define SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase swig_types[39] 3047 #define SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6 swig_types[40] 3048 #define SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow swig_types[41] 3049 #define SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6 swig_types[42] 3050 #define SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow swig_types[43] 3051 #define SWIGTYPE_p_libbgp__BgpPathAttribNexthop swig_types[44] 3052 #define SWIGTYPE_p_libbgp__BgpPathAttribOrigin swig_types[45] 3053 #define SWIGTYPE_p_libbgp__BgpRib4 swig_types[46] 3054 #define SWIGTYPE_p_libbgp__BgpRib4Entry swig_types[47] 3055 #define SWIGTYPE_p_libbgp__BgpRib6 swig_types[48] 3056 #define SWIGTYPE_p_libbgp__BgpRib6Entry swig_types[49] 3057 #define SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t swig_types[50] 3058 #define SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t swig_types[51] 3059 #define SWIGTYPE_p_libbgp__BgpSink swig_types[52] 3060 #define SWIGTYPE_p_libbgp__BgpUpdateMessage swig_types[53] 3061 #define SWIGTYPE_p_libbgp__Clock swig_types[54] 3062 #define SWIGTYPE_p_libbgp__FdOutHandler swig_types[55] 3063 #define SWIGTYPE_p_libbgp__Prefix swig_types[56] 3064 #define SWIGTYPE_p_libbgp__Prefix4 swig_types[57] 3065 #define SWIGTYPE_p_libbgp__Prefix6 swig_types[58] 3066 #define SWIGTYPE_p_libbgp__RealtimeClock swig_types[59] 3067 #define SWIGTYPE_p_libbgp__Route4AddEvent swig_types[60] 3068 #define SWIGTYPE_p_libbgp__Route4WithdrawEvent swig_types[61] 3069 #define SWIGTYPE_p_libbgp__Route6AddEvent swig_types[62] 3070 #define SWIGTYPE_p_libbgp__Route6WithdrawEvent swig_types[63] 3071 #define SWIGTYPE_p_libbgp__RouteCollisionEvent swig_types[64] 3072 #define SWIGTYPE_p_libbgp__RouteEvent swig_types[65] 3073 #define SWIGTYPE_p_libbgp__RouteEventBus swig_types[66] 3074 #define SWIGTYPE_p_libbgp__RouteEventReceiver swig_types[67] 3075 #define SWIGTYPE_p_libbgp__Serializable swig_types[68] 3076 #define SWIGTYPE_p_long_long swig_types[69] 3077 #define SWIGTYPE_p_p_char swig_types[70] 3078 #define SWIGTYPE_p_p_libbgp__BgpPacket swig_types[71] 3079 #define SWIGTYPE_p_p_unsigned_char swig_types[72] 3080 #define SWIGTYPE_p_short swig_types[73] 3081 #define SWIGTYPE_p_signed_char swig_types[74] 3082 #define SWIGTYPE_p_size_t swig_types[75] 3083 #define SWIGTYPE_p_ssize_t swig_types[76] 3084 #define SWIGTYPE_p_std__shared_ptrT_libbgp__BgpCapability_t swig_types[77] 3085 #define SWIGTYPE_p_std__vectorT_Prefix4_t swig_types[78] 3086 #define SWIGTYPE_p_std__vectorT_Prefix6_t swig_types[79] 3087 #define SWIGTYPE_p_std__vectorT_libbgp__BgpAsPathSegment_t swig_types[80] 3088 #define SWIGTYPE_p_std__vectorT_libbgp__BgpRib4Entry_t swig_types[81] 3089 #define SWIGTYPE_p_std__vectorT_libbgp__BgpRib6Entry_t swig_types[82] 3090 #define SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t swig_types[83] 3091 #define SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t swig_types[84] 3092 #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t swig_types[85] 3093 #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t swig_types[86] 3094 #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t swig_types[87] 3095 #define SWIGTYPE_p_std__vectorT_unsigned_int_t swig_types[88] 3096 #define SWIGTYPE_p_unsigned_char swig_types[89] 3097 #define SWIGTYPE_p_unsigned_int swig_types[90] 3098 #define SWIGTYPE_p_unsigned_long_long swig_types[91] 3099 #define SWIGTYPE_p_unsigned_short swig_types[92] 3102 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) 3103 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) 3107 #if (PY_VERSION_HEX <= 0x02000000) 3108 # if !defined(SWIG_PYTHON_CLASSIC) 3109 # error "This python version requires swig to be run with the '-classic' option" 3116 #if PY_VERSION_HEX >= 0x03000000 3117 # define SWIG_init PyInit__libbgp 3120 # define SWIG_init init_libbgp 3123 #define SWIG_name "_libbgp" 3125 #define SWIGVERSION 0x030010 3126 #define SWIG_VERSION SWIGVERSION 3129 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) 3130 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) 3133 #include <stdexcept> 3148 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3150 SWIG_PYTHON_THREAD_END_BLOCK;
3156 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3158 SWIG_PYTHON_THREAD_END_BLOCK;
3164 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3165 Py_XINCREF(item._obj);
3168 SWIG_PYTHON_THREAD_END_BLOCK;
3174 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3176 SWIG_PYTHON_THREAD_END_BLOCK;
3179 operator PyObject *()
const 3184 PyObject *operator->()
const 3217 SWIG_AsVal_double (PyObject *obj,
double *val)
3219 int res = SWIG_TypeError;
3220 if (PyFloat_Check(obj)) {
3221 if (val) *val = PyFloat_AsDouble(obj);
3223 #if PY_VERSION_HEX < 0x03000000 3224 }
else if (PyInt_Check(obj)) {
3225 if (val) *val = PyInt_AsLong(obj);
3228 }
else if (PyLong_Check(obj)) {
3229 double v = PyLong_AsDouble(obj);
3230 if (!PyErr_Occurred()) {
3237 #ifdef SWIG_PYTHON_CAST_MODE 3240 double d = PyFloat_AsDouble(obj);
3241 if (!PyErr_Occurred()) {
3243 return SWIG_AddCast(SWIG_OK);
3248 long v = PyLong_AsLong(obj);
3249 if (!PyErr_Occurred()) {
3251 return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3268 SWIGINTERNINLINE
int 3269 SWIG_CanCastAsInteger(
double *d,
double min,
double max) {
3271 if ((min <= x && x <= max)) {
3272 double fx = floor(x);
3273 double cx = ceil(x);
3274 double rd = ((x - fx) < 0.5) ? fx : cx;
3275 if ((errno == EDOM) || (errno == ERANGE)) {
3278 double summ, reps, diff;
3281 }
else if (rd > x) {
3288 if (reps < 8*DBL_EPSILON) {
3299 SWIG_AsVal_unsigned_SS_long (PyObject *obj,
unsigned long *val)
3301 #if PY_VERSION_HEX < 0x03000000 3302 if (PyInt_Check(obj)) {
3303 long v = PyInt_AsLong(obj);
3308 return SWIG_OverflowError;
3312 if (PyLong_Check(obj)) {
3313 unsigned long v = PyLong_AsUnsignedLong(obj);
3314 if (!PyErr_Occurred()) {
3319 return SWIG_OverflowError;
3322 #ifdef SWIG_PYTHON_CAST_MODE 3325 unsigned long v = PyLong_AsUnsignedLong(obj);
3326 if (!PyErr_Occurred()) {
3328 return SWIG_AddCast(SWIG_OK);
3334 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3335 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3336 if (val) *val = (
unsigned long)(d);
3342 return SWIG_TypeError;
3347 #if !defined(SWIG_NO_LLONG_MAX) 3348 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) 3349 # define LLONG_MAX __LONG_LONG_MAX__ 3350 # define LLONG_MIN (-LLONG_MAX - 1LL) 3351 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) 3356 #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) 3357 # define SWIG_LONG_LONG_AVAILABLE 3361 #ifdef SWIG_LONG_LONG_AVAILABLE 3363 SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj,
unsigned long long *val)
3365 int res = SWIG_TypeError;
3366 if (PyLong_Check(obj)) {
3367 unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3368 if (!PyErr_Occurred()) {
3373 res = SWIG_OverflowError;
3377 res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3378 if (SWIG_IsOK(res)) {
3383 #ifdef SWIG_PYTHON_CAST_MODE 3385 const double mant_max = 1LL << DBL_MANT_DIG;
3387 res = SWIG_AsVal_double (obj,&d);
3388 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3389 if (val) *val = (
unsigned long long)(d);
3390 return SWIG_AddCast(res);
3392 res = SWIG_TypeError;
3400 SWIGINTERNINLINE
int 3401 SWIG_AsVal_size_t (PyObject * obj,
size_t *val)
3403 int res = SWIG_TypeError;
3404 #ifdef SWIG_LONG_LONG_AVAILABLE 3405 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
3408 res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3409 if (SWIG_IsOK(res) && val) *val =
static_cast< size_t >(v);
3410 #ifdef SWIG_LONG_LONG_AVAILABLE 3411 }
else if (
sizeof(
size_t) <=
sizeof(
unsigned long long)) {
3412 unsigned long long v;
3413 res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
3414 if (SWIG_IsOK(res) && val) *val =
static_cast< size_t >(v);
3421 SWIGINTERNINLINE PyObject*
3422 SWIG_From_bool (
bool value)
3424 return PyBool_FromLong(value ? 1 : 0);
3428 #define SWIG_From_long PyInt_FromLong 3431 SWIGINTERNINLINE PyObject*
3432 SWIG_From_unsigned_SS_long (
unsigned long value)
3434 return (value > LONG_MAX) ?
3435 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3439 SWIGINTERNINLINE PyObject *
3440 SWIG_From_unsigned_SS_char (
unsigned char value)
3442 return SWIG_From_unsigned_SS_long (value);
3446 #ifdef SWIG_LONG_LONG_AVAILABLE 3447 SWIGINTERNINLINE PyObject*
3448 SWIG_From_unsigned_SS_long_SS_long (
unsigned long long value)
3450 return (value > LONG_MAX) ?
3451 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3456 SWIGINTERNINLINE PyObject *
3457 SWIG_From_size_t (
size_t value)
3459 #ifdef SWIG_LONG_LONG_AVAILABLE 3460 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
3462 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3463 #ifdef SWIG_LONG_LONG_AVAILABLE 3466 return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value));
3472 SWIGINTERNINLINE PyObject*
3473 SWIG_From_int (
int value)
3475 return PyInt_FromLong((
long) value);
3480 SWIG_AsVal_long (PyObject *obj,
long* val)
3482 #if PY_VERSION_HEX < 0x03000000 3483 if (PyInt_Check(obj)) {
3484 if (val) *val = PyInt_AsLong(obj);
3488 if (PyLong_Check(obj)) {
3489 long v = PyLong_AsLong(obj);
3490 if (!PyErr_Occurred()) {
3495 return SWIG_OverflowError;
3498 #ifdef SWIG_PYTHON_CAST_MODE 3501 long v = PyInt_AsLong(obj);
3502 if (!PyErr_Occurred()) {
3504 return SWIG_AddCast(SWIG_OK);
3510 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3511 if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3512 if (val) *val = (long)(d);
3518 return SWIG_TypeError;
3523 SWIG_AsVal_int (PyObject * obj,
int *val)
3526 int res = SWIG_AsVal_long (obj, &v);
3527 if (SWIG_IsOK(res)) {
3528 if ((v < INT_MIN || v > INT_MAX)) {
3529 return SWIG_OverflowError;
3531 if (val) *val =
static_cast< int >(v);
3539 SWIG_AsVal_unsigned_SS_int (PyObject * obj,
unsigned int *val)
3542 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3543 if (SWIG_IsOK(res)) {
3544 if ((v > UINT_MAX)) {
3545 return SWIG_OverflowError;
3547 if (val) *val =
static_cast< unsigned int >(v);
3554 SWIGINTERNINLINE PyObject*
3555 SWIG_From_unsigned_SS_int (
unsigned int value)
3557 return PyInt_FromSize_t((
size_t) value);
3562 SWIG_AsVal_unsigned_SS_char (PyObject * obj,
unsigned char *val)
3565 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3566 if (SWIG_IsOK(res)) {
3567 if ((v > UCHAR_MAX)) {
3568 return SWIG_OverflowError;
3570 if (val) *val =
static_cast< unsigned char >(v);
3578 SWIG_pchar_descriptor(
void)
3580 static int init = 0;
3583 info = SWIG_TypeQuery(
"_p_char");
3591 SWIG_AsCharPtrAndSize(PyObject *obj,
char** cptr,
size_t* psize,
int *alloc)
3593 #if PY_VERSION_HEX>=0x03000000 3594 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3595 if (PyBytes_Check(obj))
3597 if (PyUnicode_Check(obj))
3600 if (PyString_Check(obj))
3603 char *cstr; Py_ssize_t len;
3604 #if PY_VERSION_HEX>=0x03000000 3605 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3606 if (!alloc && cptr) {
3611 return SWIG_RuntimeError;
3613 obj = PyUnicode_AsUTF8String(obj);
3614 if(alloc) *alloc = SWIG_NEWOBJ;
3616 PyBytes_AsStringAndSize(obj, &cstr, &len);
3618 PyString_AsStringAndSize(obj, &cstr, &len);
3631 #if defined(SWIG_PYTHON_SAFE_CSTRINGS) 3632 if (*alloc != SWIG_OLDOBJ)
3634 if (*alloc == SWIG_NEWOBJ)
3637 *cptr =
reinterpret_cast< char*
>(memcpy((
new char[len + 1]), cstr,
sizeof(
char)*(len + 1)));
3638 *alloc = SWIG_NEWOBJ;
3641 *alloc = SWIG_OLDOBJ;
3644 #if PY_VERSION_HEX>=0x03000000 3645 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3646 *cptr = PyBytes_AsString(obj);
3651 *cptr = SWIG_Python_str_AsChar(obj);
3655 if (psize) *psize = len + 1;
3656 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3661 #if defined(SWIG_PYTHON_2_UNICODE) 3662 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) 3663 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" 3665 #if PY_VERSION_HEX<0x03000000 3666 if (PyUnicode_Check(obj)) {
3667 char *cstr; Py_ssize_t len;
3668 if (!alloc && cptr) {
3669 return SWIG_RuntimeError;
3671 obj = PyUnicode_AsUTF8String(obj);
3672 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3674 if (alloc) *alloc = SWIG_NEWOBJ;
3675 *cptr =
reinterpret_cast< char*
>(memcpy((
new char[len + 1]), cstr,
sizeof(
char)*(len + 1)));
3677 if (psize) *psize = len + 1;
3689 if (pchar_descriptor) {
3691 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3692 if (cptr) *cptr = (
char *) vptr;
3693 if (psize) *psize = vptr ? (strlen((
char *)vptr) + 1) : 0;
3694 if (alloc) *alloc = SWIG_OLDOBJ;
3699 return SWIG_TypeError;
3707 SWIG_AsVal_unsigned_SS_short (PyObject * obj,
unsigned short *val)
3710 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3711 if (SWIG_IsOK(res)) {
3712 if ((v > USHRT_MAX)) {
3713 return SWIG_OverflowError;
3715 if (val) *val =
static_cast< unsigned short >(v);
3722 SWIGINTERNINLINE PyObject *
3723 SWIG_From_unsigned_SS_short (
unsigned short value)
3725 return SWIG_From_unsigned_SS_long (value);
3730 SWIG_AsVal_bool (PyObject *obj,
bool *val)
3733 if (!PyBool_Check(obj))
3735 r = PyObject_IsTrue(obj);
3738 if (val) *val = r ? true :
false;
3744 SWIG_AsVal_signed_SS_char (PyObject * obj,
signed char *val)
3747 int res = SWIG_AsVal_long (obj, &v);
3748 if (SWIG_IsOK(res)) {
3749 if ((v < SCHAR_MIN || v > SCHAR_MAX)) {
3750 return SWIG_OverflowError;
3752 if (val) *val =
static_cast< signed char >(v);
3759 SWIGINTERNINLINE PyObject *
3760 SWIG_From_signed_SS_char (
signed char value)
3762 return SWIG_From_long (value);
3766 SWIGINTERNINLINE PyObject *
3767 SWIG_From_short (
short value)
3769 return SWIG_From_long (value);
3775 SWIGINTERN PyObject *_wrap_delete_Serializable(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3776 PyObject *resultobj = 0;
3780 PyObject * obj0 = 0 ;
3782 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Serializable",&obj0)) SWIG_fail;
3783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, SWIG_POINTER_DISOWN | 0 );
3784 if (!SWIG_IsOK(res1)) {
3785 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Serializable" "', argument " "1"" of type '" "libbgp::Serializable *""'");
3789 resultobj = SWIG_Py_Void();
3796 SWIGINTERN PyObject *_wrap_Serializable__print__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3797 PyObject *resultobj = 0;
3799 uint8_t *arg2 = (uint8_t *) 0 ;
3807 PyObject * obj0 = 0 ;
3808 PyObject * obj1 = 0 ;
3809 PyObject * obj2 = 0 ;
3812 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Serializable__print",&obj0,&obj1,&obj2)) SWIG_fail;
3813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable__print" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
3818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3819 if (!SWIG_IsOK(res2)) {
3820 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Serializable__print" "', argument " "2"" of type '" "uint8_t *""'");
3822 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
3823 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
3824 if (!SWIG_IsOK(ecode3)) {
3825 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Serializable__print" "', argument " "3"" of type '" "size_t""'");
3827 arg3 =
static_cast< size_t >(val3);
3829 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
3836 SWIGINTERN PyObject *_wrap_Serializable__print__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3837 PyObject *resultobj = 0;
3840 uint8_t *arg3 = (uint8_t *) 0 ;
3850 PyObject * obj0 = 0 ;
3851 PyObject * obj1 = 0 ;
3852 PyObject * obj2 = 0 ;
3853 PyObject * obj3 = 0 ;
3856 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Serializable__print",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
3858 if (!SWIG_IsOK(res1)) {
3859 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable__print" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
3862 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3863 if (!SWIG_IsOK(ecode2)) {
3864 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Serializable__print" "', argument " "2"" of type '" "size_t""'");
3866 arg2 =
static_cast< size_t >(val2);
3867 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3868 if (!SWIG_IsOK(res3)) {
3869 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Serializable__print" "', argument " "3"" of type '" "uint8_t *""'");
3871 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
3872 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
3873 if (!SWIG_IsOK(ecode4)) {
3874 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Serializable__print" "', argument " "4"" of type '" "size_t""'");
3876 arg4 =
static_cast< size_t >(val4);
3878 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
3885 SWIGINTERN PyObject *_wrap_Serializable__print(PyObject *
self, PyObject *args) {
3887 PyObject *argv[5] = {
3892 if (!PyTuple_Check(args)) SWIG_fail;
3893 argc = args ? PyObject_Length(args) : 0;
3894 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
3895 argv[ii] = PyTuple_GET_ITEM(args,ii);
3900 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Serializable, 0);
3901 _v = SWIG_CheckState(res);
3904 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
3905 _v = SWIG_CheckState(res);
3908 int res = SWIG_AsVal_size_t(argv[2], NULL);
3909 _v = SWIG_CheckState(res);
3912 return _wrap_Serializable__print__SWIG_0(
self, args);
3920 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Serializable, 0);
3921 _v = SWIG_CheckState(res);
3924 int res = SWIG_AsVal_size_t(argv[1], NULL);
3925 _v = SWIG_CheckState(res);
3929 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
3930 _v = SWIG_CheckState(res);
3933 int res = SWIG_AsVal_size_t(argv[3], NULL);
3934 _v = SWIG_CheckState(res);
3937 return _wrap_Serializable__print__SWIG_1(
self, args);
3945 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Serializable__print'.\n" 3946 " Possible C/C++ prototypes are:\n" 3947 " libbgp::Serializable::print(uint8_t *,size_t) const\n" 3948 " libbgp::Serializable::print(size_t,uint8_t *,size_t) const\n");
3953 SWIGINTERN PyObject *_wrap_Serializable_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3954 PyObject *resultobj = 0;
3956 uint8_t *arg2 = (uint8_t *) 0 ;
3964 PyObject * obj0 = 0 ;
3965 PyObject * obj1 = 0 ;
3966 PyObject * obj2 = 0 ;
3969 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Serializable_parse",&obj0,&obj1,&obj2)) SWIG_fail;
3970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
3971 if (!SWIG_IsOK(res1)) {
3972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_parse" "', argument " "1"" of type '" "libbgp::Serializable *""'");
3975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3976 if (!SWIG_IsOK(res2)) {
3977 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Serializable_parse" "', argument " "2"" of type '" "uint8_t const *""'");
3979 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
3980 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
3981 if (!SWIG_IsOK(ecode3)) {
3982 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Serializable_parse" "', argument " "3"" of type '" "size_t""'");
3984 arg3 =
static_cast< size_t >(val3);
3985 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
3986 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
3993 SWIGINTERN PyObject *_wrap_Serializable_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3994 PyObject *resultobj = 0;
3996 uint8_t *arg2 = (uint8_t *) 0 ;
4004 PyObject * obj0 = 0 ;
4005 PyObject * obj1 = 0 ;
4006 PyObject * obj2 = 0 ;
4009 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Serializable_write",&obj0,&obj1,&obj2)) SWIG_fail;
4010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4011 if (!SWIG_IsOK(res1)) {
4012 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_write" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4016 if (!SWIG_IsOK(res2)) {
4017 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Serializable_write" "', argument " "2"" of type '" "uint8_t *""'");
4019 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
4020 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
4021 if (!SWIG_IsOK(ecode3)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Serializable_write" "', argument " "3"" of type '" "size_t""'");
4024 arg3 =
static_cast< size_t >(val3);
4026 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
4033 SWIGINTERN PyObject *_wrap_Serializable_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4034 PyObject *resultobj = 0;
4038 PyObject * obj0 = 0 ;
4041 if (!PyArg_ParseTuple(args,(
char *)
"O:Serializable_length",&obj0)) SWIG_fail;
4042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4043 if (!SWIG_IsOK(res1)) {
4044 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_length" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4048 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
4055 SWIGINTERN PyObject *_wrap_Serializable_hasError(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4056 PyObject *resultobj = 0;
4060 PyObject * obj0 = 0 ;
4063 if (!PyArg_ParseTuple(args,(
char *)
"O:Serializable_hasError",&obj0)) SWIG_fail;
4064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4065 if (!SWIG_IsOK(res1)) {
4066 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_hasError" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4070 resultobj = SWIG_From_bool(static_cast< bool >(result));
4077 SWIGINTERN PyObject *_wrap_Serializable_getErrorCode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4078 PyObject *resultobj = 0;
4082 PyObject * obj0 = 0 ;
4085 if (!PyArg_ParseTuple(args,(
char *)
"O:Serializable_getErrorCode",&obj0)) SWIG_fail;
4086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4087 if (!SWIG_IsOK(res1)) {
4088 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_getErrorCode" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4092 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4099 SWIGINTERN PyObject *_wrap_Serializable_getErrorSubCode(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4100 PyObject *resultobj = 0;
4104 PyObject * obj0 = 0 ;
4107 if (!PyArg_ParseTuple(args,(
char *)
"O:Serializable_getErrorSubCode",&obj0)) SWIG_fail;
4108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4109 if (!SWIG_IsOK(res1)) {
4110 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_getErrorSubCode" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4114 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4121 SWIGINTERN PyObject *_wrap_Serializable_getError(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4122 PyObject *resultobj = 0;
4126 PyObject * obj0 = 0 ;
4127 uint8_t *result = 0 ;
4129 if (!PyArg_ParseTuple(args,(
char *)
"O:Serializable_getError",&obj0)) SWIG_fail;
4130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4131 if (!SWIG_IsOK(res1)) {
4132 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_getError" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
4143 SWIGINTERN PyObject *_wrap_Serializable_getErrorLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4144 PyObject *resultobj = 0;
4148 PyObject * obj0 = 0 ;
4151 if (!PyArg_ParseTuple(args,(
char *)
"O:Serializable_getErrorLength",&obj0)) SWIG_fail;
4152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4153 if (!SWIG_IsOK(res1)) {
4154 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_getErrorLength" "', argument " "1"" of type '" "libbgp::Serializable const *""'");
4158 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
4165 SWIGINTERN PyObject *_wrap_Serializable_setLogger(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4166 PyObject *resultobj = 0;
4173 PyObject * obj0 = 0 ;
4174 PyObject * obj1 = 0 ;
4176 if (!PyArg_ParseTuple(args,(
char *)
"OO:Serializable_setLogger",&obj0,&obj1)) SWIG_fail;
4177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Serializable, 0 | 0 );
4178 if (!SWIG_IsOK(res1)) {
4179 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Serializable_setLogger" "', argument " "1"" of type '" "libbgp::Serializable *""'");
4182 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
4183 if (!SWIG_IsOK(res2)) {
4184 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Serializable_setLogger" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
4187 (arg1)->setLogger(arg2);
4188 resultobj = SWIG_Py_Void();
4195 SWIGINTERN PyObject *Serializable_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4197 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4198 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Serializable, SWIG_NewClientData(obj));
4199 return SWIG_Py_Void();
4202 SWIGINTERN PyObject *_wrap_RouteEvent_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4203 PyObject *resultobj = 0;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4213 if (!PyArg_ParseTuple(args,(
char *)
"OO:RouteEvent_type_set",&obj0,&obj1)) SWIG_fail;
4214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEvent, 0 | 0 );
4215 if (!SWIG_IsOK(res1)) {
4216 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteEvent_type_set" "', argument " "1"" of type '" "libbgp::RouteEvent *""'");
4219 ecode2 = SWIG_AsVal_int(obj1, &val2);
4220 if (!SWIG_IsOK(ecode2)) {
4221 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RouteEvent_type_set" "', argument " "2"" of type '" "libbgp::RouteEventType""'");
4224 if (arg1) (arg1)->type = arg2;
4225 resultobj = SWIG_Py_Void();
4232 SWIGINTERN PyObject *_wrap_RouteEvent_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4233 PyObject *resultobj = 0;
4237 PyObject * obj0 = 0 ;
4240 if (!PyArg_ParseTuple(args,(
char *)
"O:RouteEvent_type_get",&obj0)) SWIG_fail;
4241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEvent, 0 | 0 );
4242 if (!SWIG_IsOK(res1)) {
4243 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteEvent_type_get" "', argument " "1"" of type '" "libbgp::RouteEvent *""'");
4247 resultobj = SWIG_From_int(static_cast< int >(result));
4254 SWIGINTERN PyObject *_wrap_delete_RouteEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4255 PyObject *resultobj = 0;
4259 PyObject * obj0 = 0 ;
4261 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RouteEvent",&obj0)) SWIG_fail;
4262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEvent, SWIG_POINTER_DISOWN | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RouteEvent" "', argument " "1"" of type '" "libbgp::RouteEvent *""'");
4268 resultobj = SWIG_Py_Void();
4275 SWIGINTERN PyObject *_wrap_new_RouteEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4276 PyObject *resultobj = 0;
4279 if (!PyArg_ParseTuple(args,(
char *)
":new_RouteEvent")) SWIG_fail;
4281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__RouteEvent, SWIG_POINTER_NEW | 0 );
4288 SWIGINTERN PyObject *RouteEvent_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4290 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4291 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__RouteEvent, SWIG_NewClientData(obj));
4292 return SWIG_Py_Void();
4295 SWIGINTERN PyObject *_wrap_new_Route4AddEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4296 PyObject *resultobj = 0;
4299 if (!PyArg_ParseTuple(args,(
char *)
":new_Route4AddEvent")) SWIG_fail;
4301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Route4AddEvent, SWIG_POINTER_NEW | 0 );
4308 SWIGINTERN PyObject *_wrap_Route4AddEvent_attribs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4309 PyObject *resultobj = 0;
4311 std::vector< std::shared_ptr< BgpPathAttrib > > arg2 ;
4316 PyObject * obj0 = 0 ;
4317 PyObject * obj1 = 0 ;
4319 if (!PyArg_ParseTuple(args,(
char *)
"OO:Route4AddEvent_attribs_set",&obj0,&obj1)) SWIG_fail;
4320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4AddEvent, 0 | 0 );
4321 if (!SWIG_IsOK(res1)) {
4322 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route4AddEvent_attribs_set" "', argument " "1"" of type '" "libbgp::Route4AddEvent *""'");
4326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
4327 if (!SWIG_IsOK(res2)) {
4328 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Route4AddEvent_attribs_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > >""'");
4331 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Route4AddEvent_attribs_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > >""'");
4333 std::vector< std::shared_ptr< BgpPathAttrib > > * temp =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp2);
4335 if (SWIG_IsNewObj(res2))
delete temp;
4338 if (arg1) (arg1)->attribs = arg2;
4339 resultobj = SWIG_Py_Void();
4346 SWIGINTERN PyObject *_wrap_Route4AddEvent_attribs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4347 PyObject *resultobj = 0;
4351 PyObject * obj0 = 0 ;
4352 std::vector< std::shared_ptr< BgpPathAttrib > > result;
4354 if (!PyArg_ParseTuple(args,(
char *)
"O:Route4AddEvent_attribs_get",&obj0)) SWIG_fail;
4355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4AddEvent, 0 | 0 );
4356 if (!SWIG_IsOK(res1)) {
4357 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route4AddEvent_attribs_get" "', argument " "1"" of type '" "libbgp::Route4AddEvent *""'");
4360 result = ((arg1)->attribs);
4361 resultobj = SWIG_NewPointerObj((
new std::vector< std::shared_ptr< BgpPathAttrib > >(
static_cast< const std::vector< std::shared_ptr< BgpPathAttrib >
>& >(result))), SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, SWIG_POINTER_OWN | 0 );
4368 SWIGINTERN PyObject *_wrap_Route4AddEvent_routes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4369 PyObject *resultobj = 0;
4371 std::vector< Prefix4 > arg2 ;
4376 PyObject * obj0 = 0 ;
4377 PyObject * obj1 = 0 ;
4379 if (!PyArg_ParseTuple(args,(
char *)
"OO:Route4AddEvent_routes_set",&obj0,&obj1)) SWIG_fail;
4380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4AddEvent, 0 | 0 );
4381 if (!SWIG_IsOK(res1)) {
4382 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route4AddEvent_routes_set" "', argument " "1"" of type '" "libbgp::Route4AddEvent *""'");
4386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_Prefix4_t, 0 | 0);
4387 if (!SWIG_IsOK(res2)) {
4388 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Route4AddEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix4 >""'");
4391 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Route4AddEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix4 >""'");
4393 std::vector< Prefix4 > * temp =
reinterpret_cast< std::vector< Prefix4 > *
>(argp2);
4395 if (SWIG_IsNewObj(res2))
delete temp;
4398 if (arg1) (arg1)->routes = arg2;
4399 resultobj = SWIG_Py_Void();
4406 SWIGINTERN PyObject *_wrap_Route4AddEvent_routes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4407 PyObject *resultobj = 0;
4411 PyObject * obj0 = 0 ;
4412 std::vector< Prefix4 > result;
4414 if (!PyArg_ParseTuple(args,(
char *)
"O:Route4AddEvent_routes_get",&obj0)) SWIG_fail;
4415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4AddEvent, 0 | 0 );
4416 if (!SWIG_IsOK(res1)) {
4417 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route4AddEvent_routes_get" "', argument " "1"" of type '" "libbgp::Route4AddEvent *""'");
4420 result = ((arg1)->routes);
4421 resultobj = SWIG_NewPointerObj((
new std::vector< Prefix4 >(
static_cast< const std::vector< Prefix4 >&
>(result))), SWIGTYPE_p_std__vectorT_Prefix4_t, SWIG_POINTER_OWN | 0 );
4428 SWIGINTERN PyObject *_wrap_delete_Route4AddEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4429 PyObject *resultobj = 0;
4433 PyObject * obj0 = 0 ;
4435 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Route4AddEvent",&obj0)) SWIG_fail;
4436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4AddEvent, SWIG_POINTER_DISOWN | 0 );
4437 if (!SWIG_IsOK(res1)) {
4438 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Route4AddEvent" "', argument " "1"" of type '" "libbgp::Route4AddEvent *""'");
4442 resultobj = SWIG_Py_Void();
4449 SWIGINTERN PyObject *Route4AddEvent_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4451 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4452 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Route4AddEvent, SWIG_NewClientData(obj));
4453 return SWIG_Py_Void();
4456 SWIGINTERN PyObject *_wrap_new_Route4WithdrawEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4457 PyObject *resultobj = 0;
4460 if (!PyArg_ParseTuple(args,(
char *)
":new_Route4WithdrawEvent")) SWIG_fail;
4462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Route4WithdrawEvent, SWIG_POINTER_NEW | 0 );
4469 SWIGINTERN PyObject *_wrap_Route4WithdrawEvent_routes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4470 PyObject *resultobj = 0;
4472 std::vector< Prefix4 > arg2 ;
4477 PyObject * obj0 = 0 ;
4478 PyObject * obj1 = 0 ;
4480 if (!PyArg_ParseTuple(args,(
char *)
"OO:Route4WithdrawEvent_routes_set",&obj0,&obj1)) SWIG_fail;
4481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4WithdrawEvent, 0 | 0 );
4482 if (!SWIG_IsOK(res1)) {
4483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route4WithdrawEvent_routes_set" "', argument " "1"" of type '" "libbgp::Route4WithdrawEvent *""'");
4487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_Prefix4_t, 0 | 0);
4488 if (!SWIG_IsOK(res2)) {
4489 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Route4WithdrawEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix4 >""'");
4492 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Route4WithdrawEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix4 >""'");
4494 std::vector< Prefix4 > * temp =
reinterpret_cast< std::vector< Prefix4 > *
>(argp2);
4496 if (SWIG_IsNewObj(res2))
delete temp;
4499 if (arg1) (arg1)->routes = arg2;
4500 resultobj = SWIG_Py_Void();
4507 SWIGINTERN PyObject *_wrap_Route4WithdrawEvent_routes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4508 PyObject *resultobj = 0;
4512 PyObject * obj0 = 0 ;
4513 std::vector< Prefix4 > result;
4515 if (!PyArg_ParseTuple(args,(
char *)
"O:Route4WithdrawEvent_routes_get",&obj0)) SWIG_fail;
4516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4WithdrawEvent, 0 | 0 );
4517 if (!SWIG_IsOK(res1)) {
4518 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route4WithdrawEvent_routes_get" "', argument " "1"" of type '" "libbgp::Route4WithdrawEvent *""'");
4521 result = ((arg1)->routes);
4522 resultobj = SWIG_NewPointerObj((
new std::vector< Prefix4 >(
static_cast< const std::vector< Prefix4 >&
>(result))), SWIGTYPE_p_std__vectorT_Prefix4_t, SWIG_POINTER_OWN | 0 );
4529 SWIGINTERN PyObject *_wrap_delete_Route4WithdrawEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4530 PyObject *resultobj = 0;
4534 PyObject * obj0 = 0 ;
4536 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Route4WithdrawEvent",&obj0)) SWIG_fail;
4537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route4WithdrawEvent, SWIG_POINTER_DISOWN | 0 );
4538 if (!SWIG_IsOK(res1)) {
4539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Route4WithdrawEvent" "', argument " "1"" of type '" "libbgp::Route4WithdrawEvent *""'");
4543 resultobj = SWIG_Py_Void();
4550 SWIGINTERN PyObject *Route4WithdrawEvent_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4552 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4553 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Route4WithdrawEvent, SWIG_NewClientData(obj));
4554 return SWIG_Py_Void();
4557 SWIGINTERN PyObject *_wrap_new_Route6AddEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4558 PyObject *resultobj = 0;
4561 if (!PyArg_ParseTuple(args,(
char *)
":new_Route6AddEvent")) SWIG_fail;
4563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Route6AddEvent, SWIG_POINTER_NEW | 0 );
4570 SWIGINTERN PyObject *_wrap_Route6AddEvent_attribs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4571 PyObject *resultobj = 0;
4573 std::vector< std::shared_ptr< BgpPathAttrib > > arg2 ;
4578 PyObject * obj0 = 0 ;
4579 PyObject * obj1 = 0 ;
4581 if (!PyArg_ParseTuple(args,(
char *)
"OO:Route6AddEvent_attribs_set",&obj0,&obj1)) SWIG_fail;
4582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6AddEvent, 0 | 0 );
4583 if (!SWIG_IsOK(res1)) {
4584 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route6AddEvent_attribs_set" "', argument " "1"" of type '" "libbgp::Route6AddEvent *""'");
4588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
4589 if (!SWIG_IsOK(res2)) {
4590 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Route6AddEvent_attribs_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > >""'");
4593 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Route6AddEvent_attribs_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > >""'");
4595 std::vector< std::shared_ptr< BgpPathAttrib > > * temp =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp2);
4597 if (SWIG_IsNewObj(res2))
delete temp;
4600 if (arg1) (arg1)->attribs = arg2;
4601 resultobj = SWIG_Py_Void();
4608 SWIGINTERN PyObject *_wrap_Route6AddEvent_attribs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4609 PyObject *resultobj = 0;
4613 PyObject * obj0 = 0 ;
4614 std::vector< std::shared_ptr< BgpPathAttrib > > result;
4616 if (!PyArg_ParseTuple(args,(
char *)
"O:Route6AddEvent_attribs_get",&obj0)) SWIG_fail;
4617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6AddEvent, 0 | 0 );
4618 if (!SWIG_IsOK(res1)) {
4619 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route6AddEvent_attribs_get" "', argument " "1"" of type '" "libbgp::Route6AddEvent *""'");
4622 result = ((arg1)->attribs);
4623 resultobj = SWIG_NewPointerObj((
new std::vector< std::shared_ptr< BgpPathAttrib > >(
static_cast< const std::vector< std::shared_ptr< BgpPathAttrib >
>& >(result))), SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, SWIG_POINTER_OWN | 0 );
4630 SWIGINTERN PyObject *_wrap_Route6AddEvent_routes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4631 PyObject *resultobj = 0;
4633 std::vector< Prefix6 > arg2 ;
4638 PyObject * obj0 = 0 ;
4639 PyObject * obj1 = 0 ;
4641 if (!PyArg_ParseTuple(args,(
char *)
"OO:Route6AddEvent_routes_set",&obj0,&obj1)) SWIG_fail;
4642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6AddEvent, 0 | 0 );
4643 if (!SWIG_IsOK(res1)) {
4644 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route6AddEvent_routes_set" "', argument " "1"" of type '" "libbgp::Route6AddEvent *""'");
4648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_Prefix6_t, 0 | 0);
4649 if (!SWIG_IsOK(res2)) {
4650 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Route6AddEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix6 >""'");
4653 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Route6AddEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix6 >""'");
4655 std::vector< Prefix6 > * temp =
reinterpret_cast< std::vector< Prefix6 > *
>(argp2);
4657 if (SWIG_IsNewObj(res2))
delete temp;
4660 if (arg1) (arg1)->routes = arg2;
4661 resultobj = SWIG_Py_Void();
4668 SWIGINTERN PyObject *_wrap_Route6AddEvent_routes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4669 PyObject *resultobj = 0;
4673 PyObject * obj0 = 0 ;
4674 std::vector< Prefix6 > result;
4676 if (!PyArg_ParseTuple(args,(
char *)
"O:Route6AddEvent_routes_get",&obj0)) SWIG_fail;
4677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6AddEvent, 0 | 0 );
4678 if (!SWIG_IsOK(res1)) {
4679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route6AddEvent_routes_get" "', argument " "1"" of type '" "libbgp::Route6AddEvent *""'");
4682 result = ((arg1)->routes);
4683 resultobj = SWIG_NewPointerObj((
new std::vector< Prefix6 >(
static_cast< const std::vector< Prefix6 >&
>(result))), SWIGTYPE_p_std__vectorT_Prefix6_t, SWIG_POINTER_OWN | 0 );
4690 SWIGINTERN PyObject *_wrap_delete_Route6AddEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4691 PyObject *resultobj = 0;
4695 PyObject * obj0 = 0 ;
4697 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Route6AddEvent",&obj0)) SWIG_fail;
4698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6AddEvent, SWIG_POINTER_DISOWN | 0 );
4699 if (!SWIG_IsOK(res1)) {
4700 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Route6AddEvent" "', argument " "1"" of type '" "libbgp::Route6AddEvent *""'");
4704 resultobj = SWIG_Py_Void();
4711 SWIGINTERN PyObject *Route6AddEvent_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4713 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4714 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Route6AddEvent, SWIG_NewClientData(obj));
4715 return SWIG_Py_Void();
4718 SWIGINTERN PyObject *_wrap_new_Route6WithdrawEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4719 PyObject *resultobj = 0;
4722 if (!PyArg_ParseTuple(args,(
char *)
":new_Route6WithdrawEvent")) SWIG_fail;
4724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Route6WithdrawEvent, SWIG_POINTER_NEW | 0 );
4731 SWIGINTERN PyObject *_wrap_Route6WithdrawEvent_routes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4732 PyObject *resultobj = 0;
4734 std::vector< Prefix6 > arg2 ;
4739 PyObject * obj0 = 0 ;
4740 PyObject * obj1 = 0 ;
4742 if (!PyArg_ParseTuple(args,(
char *)
"OO:Route6WithdrawEvent_routes_set",&obj0,&obj1)) SWIG_fail;
4743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6WithdrawEvent, 0 | 0 );
4744 if (!SWIG_IsOK(res1)) {
4745 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route6WithdrawEvent_routes_set" "', argument " "1"" of type '" "libbgp::Route6WithdrawEvent *""'");
4749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_Prefix6_t, 0 | 0);
4750 if (!SWIG_IsOK(res2)) {
4751 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Route6WithdrawEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix6 >""'");
4754 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Route6WithdrawEvent_routes_set" "', argument " "2"" of type '" "std::vector< Prefix6 >""'");
4756 std::vector< Prefix6 > * temp =
reinterpret_cast< std::vector< Prefix6 > *
>(argp2);
4758 if (SWIG_IsNewObj(res2))
delete temp;
4761 if (arg1) (arg1)->routes = arg2;
4762 resultobj = SWIG_Py_Void();
4769 SWIGINTERN PyObject *_wrap_Route6WithdrawEvent_routes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4770 PyObject *resultobj = 0;
4774 PyObject * obj0 = 0 ;
4775 std::vector< Prefix6 > result;
4777 if (!PyArg_ParseTuple(args,(
char *)
"O:Route6WithdrawEvent_routes_get",&obj0)) SWIG_fail;
4778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6WithdrawEvent, 0 | 0 );
4779 if (!SWIG_IsOK(res1)) {
4780 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Route6WithdrawEvent_routes_get" "', argument " "1"" of type '" "libbgp::Route6WithdrawEvent *""'");
4783 result = ((arg1)->routes);
4784 resultobj = SWIG_NewPointerObj((
new std::vector< Prefix6 >(
static_cast< const std::vector< Prefix6 >&
>(result))), SWIGTYPE_p_std__vectorT_Prefix6_t, SWIG_POINTER_OWN | 0 );
4791 SWIGINTERN PyObject *_wrap_delete_Route6WithdrawEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4792 PyObject *resultobj = 0;
4796 PyObject * obj0 = 0 ;
4798 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Route6WithdrawEvent",&obj0)) SWIG_fail;
4799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Route6WithdrawEvent, SWIG_POINTER_DISOWN | 0 );
4800 if (!SWIG_IsOK(res1)) {
4801 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Route6WithdrawEvent" "', argument " "1"" of type '" "libbgp::Route6WithdrawEvent *""'");
4805 resultobj = SWIG_Py_Void();
4812 SWIGINTERN PyObject *Route6WithdrawEvent_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4814 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4815 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Route6WithdrawEvent, SWIG_NewClientData(obj));
4816 return SWIG_Py_Void();
4819 SWIGINTERN PyObject *_wrap_new_RouteCollisionEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4820 PyObject *resultobj = 0;
4823 if (!PyArg_ParseTuple(args,(
char *)
":new_RouteCollisionEvent")) SWIG_fail;
4825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__RouteCollisionEvent, SWIG_POINTER_NEW | 0 );
4832 SWIGINTERN PyObject *_wrap_RouteCollisionEvent_peer_bgp_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4833 PyObject *resultobj = 0;
4840 PyObject * obj0 = 0 ;
4841 PyObject * obj1 = 0 ;
4843 if (!PyArg_ParseTuple(args,(
char *)
"OO:RouteCollisionEvent_peer_bgp_id_set",&obj0,&obj1)) SWIG_fail;
4844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteCollisionEvent, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteCollisionEvent_peer_bgp_id_set" "', argument " "1"" of type '" "libbgp::RouteCollisionEvent *""'");
4849 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
4850 if (!SWIG_IsOK(ecode2)) {
4851 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "RouteCollisionEvent_peer_bgp_id_set" "', argument " "2"" of type '" "uint32_t""'");
4853 arg2 =
static_cast< uint32_t
>(val2);
4854 if (arg1) (arg1)->peer_bgp_id = arg2;
4855 resultobj = SWIG_Py_Void();
4862 SWIGINTERN PyObject *_wrap_RouteCollisionEvent_peer_bgp_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4863 PyObject *resultobj = 0;
4867 PyObject * obj0 = 0 ;
4870 if (!PyArg_ParseTuple(args,(
char *)
"O:RouteCollisionEvent_peer_bgp_id_get",&obj0)) SWIG_fail;
4871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteCollisionEvent, 0 | 0 );
4872 if (!SWIG_IsOK(res1)) {
4873 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteCollisionEvent_peer_bgp_id_get" "', argument " "1"" of type '" "libbgp::RouteCollisionEvent *""'");
4876 result = (uint32_t) ((arg1)->peer_bgp_id);
4877 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
4884 SWIGINTERN PyObject *_wrap_delete_RouteCollisionEvent(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4885 PyObject *resultobj = 0;
4889 PyObject * obj0 = 0 ;
4891 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RouteCollisionEvent",&obj0)) SWIG_fail;
4892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteCollisionEvent, SWIG_POINTER_DISOWN | 0 );
4893 if (!SWIG_IsOK(res1)) {
4894 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RouteCollisionEvent" "', argument " "1"" of type '" "libbgp::RouteCollisionEvent *""'");
4898 resultobj = SWIG_Py_Void();
4905 SWIGINTERN PyObject *RouteCollisionEvent_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4907 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4908 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__RouteCollisionEvent, SWIG_NewClientData(obj));
4909 return SWIG_Py_Void();
4912 SWIGINTERN PyObject *_wrap_delete_RouteEventReceiver(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4913 PyObject *resultobj = 0;
4917 PyObject * obj0 = 0 ;
4919 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RouteEventReceiver",&obj0)) SWIG_fail;
4920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEventReceiver, SWIG_POINTER_DISOWN | 0 );
4921 if (!SWIG_IsOK(res1)) {
4922 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RouteEventReceiver" "', argument " "1"" of type '" "libbgp::RouteEventReceiver *""'");
4926 resultobj = SWIG_Py_Void();
4933 SWIGINTERN PyObject *RouteEventReceiver_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4935 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
4936 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__RouteEventReceiver, SWIG_NewClientData(obj));
4937 return SWIG_Py_Void();
4940 SWIGINTERN PyObject *_wrap_new_RouteEventBus(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4941 PyObject *resultobj = 0;
4944 if (!PyArg_ParseTuple(args,(
char *)
":new_RouteEventBus")) SWIG_fail;
4946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__RouteEventBus, SWIG_POINTER_NEW | 0 );
4953 SWIGINTERN PyObject *_wrap_RouteEventBus_publish(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4954 PyObject *resultobj = 0;
4964 PyObject * obj0 = 0 ;
4965 PyObject * obj1 = 0 ;
4966 PyObject * obj2 = 0 ;
4969 if (!PyArg_ParseTuple(args,(
char *)
"OOO:RouteEventBus_publish",&obj0,&obj1,&obj2)) SWIG_fail;
4970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
4971 if (!SWIG_IsOK(res1)) {
4972 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteEventBus_publish" "', argument " "1"" of type '" "libbgp::RouteEventBus *""'");
4975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__RouteEventReceiver, 0 | 0 );
4976 if (!SWIG_IsOK(res2)) {
4977 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RouteEventBus_publish" "', argument " "2"" of type '" "libbgp::RouteEventReceiver *""'");
4980 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__RouteEvent, 0 | 0);
4981 if (!SWIG_IsOK(res3)) {
4982 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "RouteEventBus_publish" "', argument " "3"" of type '" "libbgp::RouteEvent const &""'");
4985 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "RouteEventBus_publish" "', argument " "3"" of type '" "libbgp::RouteEvent const &""'");
4989 resultobj = SWIG_From_int(static_cast< int >(result));
4996 SWIGINTERN PyObject *_wrap_RouteEventBus_subscribe(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4997 PyObject *resultobj = 0;
5004 PyObject * obj0 = 0 ;
5005 PyObject * obj1 = 0 ;
5008 if (!PyArg_ParseTuple(args,(
char *)
"OO:RouteEventBus_subscribe",&obj0,&obj1)) SWIG_fail;
5009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
5011 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteEventBus_subscribe" "', argument " "1"" of type '" "libbgp::RouteEventBus *""'");
5014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__RouteEventReceiver, 0 | 0 );
5015 if (!SWIG_IsOK(res2)) {
5016 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RouteEventBus_subscribe" "', argument " "2"" of type '" "libbgp::RouteEventReceiver *""'");
5019 result = (bool)(arg1)->subscribe(arg2);
5020 resultobj = SWIG_From_bool(static_cast< bool >(result));
5027 SWIGINTERN PyObject *_wrap_RouteEventBus_unsubscribe(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5028 PyObject *resultobj = 0;
5035 PyObject * obj0 = 0 ;
5036 PyObject * obj1 = 0 ;
5039 if (!PyArg_ParseTuple(args,(
char *)
"OO:RouteEventBus_unsubscribe",&obj0,&obj1)) SWIG_fail;
5040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
5041 if (!SWIG_IsOK(res1)) {
5042 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RouteEventBus_unsubscribe" "', argument " "1"" of type '" "libbgp::RouteEventBus *""'");
5045 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__RouteEventReceiver, 0 | 0 );
5046 if (!SWIG_IsOK(res2)) {
5047 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "RouteEventBus_unsubscribe" "', argument " "2"" of type '" "libbgp::RouteEventReceiver *""'");
5050 result = (bool)(arg1)->unsubscribe(arg2);
5051 resultobj = SWIG_From_bool(static_cast< bool >(result));
5058 SWIGINTERN PyObject *_wrap_delete_RouteEventBus(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5059 PyObject *resultobj = 0;
5063 PyObject * obj0 = 0 ;
5065 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RouteEventBus",&obj0)) SWIG_fail;
5066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RouteEventBus, SWIG_POINTER_DISOWN | 0 );
5067 if (!SWIG_IsOK(res1)) {
5068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RouteEventBus" "', argument " "1"" of type '" "libbgp::RouteEventBus *""'");
5072 resultobj = SWIG_Py_Void();
5079 SWIGINTERN PyObject *RouteEventBus_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5081 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
5082 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__RouteEventBus, SWIG_NewClientData(obj));
5083 return SWIG_Py_Void();
5086 SWIGINTERN PyObject *_wrap_cidr_to_mask(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5087 PyObject *resultobj = 0;
5089 unsigned char val1 ;
5091 PyObject * obj0 = 0 ;
5094 if (!PyArg_ParseTuple(args,(
char *)
"O:cidr_to_mask",&obj0)) SWIG_fail;
5095 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
5096 if (!SWIG_IsOK(ecode1)) {
5097 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cidr_to_mask" "', argument " "1"" of type '" "uint8_t""'");
5099 arg1 =
static_cast< uint8_t
>(val1);
5101 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
5108 SWIGINTERN PyObject *_wrap_Prefix_afi_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5109 PyObject *resultobj = 0;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5119 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix_afi_set",&obj0,&obj1)) SWIG_fail;
5120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5121 if (!SWIG_IsOK(res1)) {
5122 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix_afi_set" "', argument " "1"" of type '" "libbgp::Prefix *""'");
5126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Afi, 0 | 0);
5127 if (!SWIG_IsOK(res2)) {
5128 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix_afi_set" "', argument " "2"" of type '" "Afi""'");
5131 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix_afi_set" "', argument " "2"" of type '" "Afi""'");
5133 Afi * temp =
reinterpret_cast< Afi *
>(argp2);
5135 if (SWIG_IsNewObj(res2))
delete temp;
5138 if (arg1) (arg1)->afi = arg2;
5139 resultobj = SWIG_Py_Void();
5146 SWIGINTERN PyObject *_wrap_Prefix_afi_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5147 PyObject *resultobj = 0;
5151 PyObject * obj0 = 0 ;
5154 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix_afi_get",&obj0)) SWIG_fail;
5155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5156 if (!SWIG_IsOK(res1)) {
5157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix_afi_get" "', argument " "1"" of type '" "libbgp::Prefix *""'");
5160 result = ((arg1)->afi);
5161 resultobj = SWIG_NewPointerObj((
new Afi(static_cast< const Afi& >(result))), SWIGTYPE_p_Afi, SWIG_POINTER_OWN | 0 );
5168 SWIGINTERN PyObject *_wrap_Prefix_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5169 PyObject *resultobj = 0;
5171 uint8_t *arg2 = (uint8_t *) 0 ;
5179 PyObject * obj0 = 0 ;
5180 PyObject * obj1 = 0 ;
5181 PyObject * obj2 = 0 ;
5184 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix_parse",&obj0,&obj1,&obj2)) SWIG_fail;
5185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix_parse" "', argument " "1"" of type '" "libbgp::Prefix *""'");
5190 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
5191 if (!SWIG_IsOK(res2)) {
5192 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix_parse" "', argument " "2"" of type '" "uint8_t const *""'");
5194 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
5195 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
5196 if (!SWIG_IsOK(ecode3)) {
5197 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix_parse" "', argument " "3"" of type '" "size_t""'");
5199 arg3 =
static_cast< size_t >(val3);
5200 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
5201 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
5208 SWIGINTERN PyObject *_wrap_Prefix_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5209 PyObject *resultobj = 0;
5211 uint8_t *arg2 = (uint8_t *) 0 ;
5219 PyObject * obj0 = 0 ;
5220 PyObject * obj1 = 0 ;
5221 PyObject * obj2 = 0 ;
5224 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix_write",&obj0,&obj1,&obj2)) SWIG_fail;
5225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5226 if (!SWIG_IsOK(res1)) {
5227 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix_write" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
5231 if (!SWIG_IsOK(res2)) {
5232 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix_write" "', argument " "2"" of type '" "uint8_t *""'");
5234 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
5235 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
5236 if (!SWIG_IsOK(ecode3)) {
5237 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix_write" "', argument " "3"" of type '" "size_t""'");
5239 arg3 =
static_cast< size_t >(val3);
5241 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
5248 SWIGINTERN PyObject *_wrap_Prefix_includes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5249 PyObject *resultobj = 0;
5256 PyObject * obj0 = 0 ;
5257 PyObject * obj1 = 0 ;
5260 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix_includes",&obj0,&obj1)) SWIG_fail;
5261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix_includes" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5267 if (!SWIG_IsOK(res2)) {
5268 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix_includes" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5271 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix_includes" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5275 resultobj = SWIG_From_bool(static_cast< bool >(result));
5282 SWIGINTERN PyObject *_wrap_Prefix___eq__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5283 PyObject *resultobj = 0;
5290 PyObject * obj0 = 0 ;
5291 PyObject * obj1 = 0 ;
5294 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix___eq__",&obj0,&obj1)) SWIG_fail;
5295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5296 if (!SWIG_IsOK(res1)) {
5297 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix___eq__" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5301 if (!SWIG_IsOK(res2)) {
5302 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix___eq__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5305 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix___eq__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5309 resultobj = SWIG_From_bool(static_cast< bool >(result));
5316 SWIGINTERN PyObject *_wrap_Prefix___gt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5317 PyObject *resultobj = 0;
5324 PyObject * obj0 = 0 ;
5325 PyObject * obj1 = 0 ;
5328 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix___gt__",&obj0,&obj1)) SWIG_fail;
5329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5330 if (!SWIG_IsOK(res1)) {
5331 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix___gt__" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5335 if (!SWIG_IsOK(res2)) {
5336 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix___gt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5339 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix___gt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5343 resultobj = SWIG_From_bool(static_cast< bool >(result));
5350 SWIGINTERN PyObject *_wrap_Prefix___lt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5351 PyObject *resultobj = 0;
5358 PyObject * obj0 = 0 ;
5359 PyObject * obj1 = 0 ;
5362 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix___lt__",&obj0,&obj1)) SWIG_fail;
5363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5364 if (!SWIG_IsOK(res1)) {
5365 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix___lt__" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5369 if (!SWIG_IsOK(res2)) {
5370 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix___lt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5373 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix___lt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5377 resultobj = SWIG_From_bool(static_cast< bool >(result));
5384 SWIGINTERN PyObject *_wrap_Prefix___ge__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5385 PyObject *resultobj = 0;
5392 PyObject * obj0 = 0 ;
5393 PyObject * obj1 = 0 ;
5396 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix___ge__",&obj0,&obj1)) SWIG_fail;
5397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5398 if (!SWIG_IsOK(res1)) {
5399 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix___ge__" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5403 if (!SWIG_IsOK(res2)) {
5404 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix___ge__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5407 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix___ge__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5411 resultobj = SWIG_From_bool(static_cast< bool >(result));
5418 SWIGINTERN PyObject *_wrap_Prefix___le__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5419 PyObject *resultobj = 0;
5426 PyObject * obj0 = 0 ;
5427 PyObject * obj1 = 0 ;
5430 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix___le__",&obj0,&obj1)) SWIG_fail;
5431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5432 if (!SWIG_IsOK(res1)) {
5433 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix___le__" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5437 if (!SWIG_IsOK(res2)) {
5438 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix___le__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5441 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix___le__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5445 resultobj = SWIG_From_bool(static_cast< bool >(result));
5452 SWIGINTERN PyObject *_wrap_Prefix___ne__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5453 PyObject *resultobj = 0;
5460 PyObject * obj0 = 0 ;
5461 PyObject * obj1 = 0 ;
5464 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix___ne__",&obj0,&obj1)) SWIG_fail;
5465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, 0 | 0 );
5466 if (!SWIG_IsOK(res1)) {
5467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix___ne__" "', argument " "1"" of type '" "libbgp::Prefix const *""'");
5470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5471 if (!SWIG_IsOK(res2)) {
5472 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix___ne__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5475 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix___ne__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5479 resultobj = SWIG_From_bool(static_cast< bool >(result));
5486 SWIGINTERN PyObject *_wrap_delete_Prefix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5487 PyObject *resultobj = 0;
5491 PyObject * obj0 = 0 ;
5493 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Prefix",&obj0)) SWIG_fail;
5494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix, SWIG_POINTER_DISOWN | 0 );
5495 if (!SWIG_IsOK(res1)) {
5496 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Prefix" "', argument " "1"" of type '" "libbgp::Prefix *""'");
5500 resultobj = SWIG_Py_Void();
5507 SWIGINTERN PyObject *Prefix_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5509 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
5510 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Prefix, SWIG_NewClientData(obj));
5511 return SWIG_Py_Void();
5514 SWIGINTERN PyObject *_wrap_new_Prefix4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5515 PyObject *resultobj = 0;
5518 if (!PyArg_ParseTuple(args,(
char *)
":new_Prefix4")) SWIG_fail;
5520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix4, SWIG_POINTER_NEW | 0 );
5527 SWIGINTERN PyObject *_wrap_new_Prefix4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5528 PyObject *resultobj = 0;
5533 unsigned char val2 ;
5535 PyObject * obj0 = 0 ;
5536 PyObject * obj1 = 0 ;
5539 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Prefix4",&obj0,&obj1)) SWIG_fail;
5540 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
5541 if (!SWIG_IsOK(ecode1)) {
5542 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_Prefix4" "', argument " "1"" of type '" "uint32_t""'");
5544 arg1 =
static_cast< uint32_t
>(val1);
5545 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
5546 if (!SWIG_IsOK(ecode2)) {
5547 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Prefix4" "', argument " "2"" of type '" "uint8_t""'");
5549 arg2 =
static_cast< uint8_t
>(val2);
5551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix4, SWIG_POINTER_NEW | 0 );
5558 SWIGINTERN PyObject *_wrap_new_Prefix4__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5559 PyObject *resultobj = 0;
5560 char *arg1 = (
char *) 0 ;
5565 unsigned char val2 ;
5567 PyObject * obj0 = 0 ;
5568 PyObject * obj1 = 0 ;
5571 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Prefix4",&obj0,&obj1)) SWIG_fail;
5572 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
5573 if (!SWIG_IsOK(res1)) {
5574 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Prefix4" "', argument " "1"" of type '" "char const *""'");
5576 arg1 =
reinterpret_cast< char *
>(buf1);
5577 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
5578 if (!SWIG_IsOK(ecode2)) {
5579 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Prefix4" "', argument " "2"" of type '" "uint8_t""'");
5581 arg2 =
static_cast< uint8_t
>(val2);
5583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix4, SWIG_POINTER_NEW | 0 );
5584 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
5587 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
5592 SWIGINTERN PyObject *_wrap_new_Prefix4(PyObject *
self, PyObject *args) {
5594 PyObject *argv[3] = {
5599 if (!PyTuple_Check(args)) SWIG_fail;
5600 argc = args ? PyObject_Length(args) : 0;
5601 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5602 argv[ii] = PyTuple_GET_ITEM(args,ii);
5605 return _wrap_new_Prefix4__SWIG_0(
self, args);
5610 int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
5611 _v = SWIG_CheckState(res);
5615 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
5616 _v = SWIG_CheckState(res);
5619 return _wrap_new_Prefix4__SWIG_1(
self, args);
5625 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
5626 _v = SWIG_CheckState(res);
5629 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
5630 _v = SWIG_CheckState(res);
5633 return _wrap_new_Prefix4__SWIG_2(
self, args);
5639 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Prefix4'.\n" 5640 " Possible C/C++ prototypes are:\n" 5641 " libbgp::Prefix4::Prefix4()\n" 5642 " libbgp::Prefix4::Prefix4(uint32_t,uint8_t)\n" 5643 " libbgp::Prefix4::Prefix4(char const *,uint8_t)\n");
5648 SWIGINTERN PyObject *_wrap_Prefix4_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5649 PyObject *resultobj = 0;
5651 uint8_t *arg2 = (uint8_t *) 0 ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661 PyObject * obj2 = 0 ;
5664 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4_parse",&obj0,&obj1,&obj2)) SWIG_fail;
5665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_parse" "', argument " "1"" of type '" "libbgp::Prefix4 *""'");
5670 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
5671 if (!SWIG_IsOK(res2)) {
5672 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4_parse" "', argument " "2"" of type '" "uint8_t const *""'");
5674 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
5675 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
5676 if (!SWIG_IsOK(ecode3)) {
5677 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_parse" "', argument " "3"" of type '" "size_t""'");
5679 arg3 =
static_cast< size_t >(val3);
5680 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
5681 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
5688 SWIGINTERN PyObject *_wrap_Prefix4_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5689 PyObject *resultobj = 0;
5691 uint8_t *arg2 = (uint8_t *) 0 ;
5699 PyObject * obj0 = 0 ;
5700 PyObject * obj1 = 0 ;
5701 PyObject * obj2 = 0 ;
5704 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4_write",&obj0,&obj1,&obj2)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_write" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4_write" "', argument " "2"" of type '" "uint8_t *""'");
5714 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
5715 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
5716 if (!SWIG_IsOK(ecode3)) {
5717 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_write" "', argument " "3"" of type '" "size_t""'");
5719 arg3 =
static_cast< size_t >(val3);
5721 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
5728 SWIGINTERN PyObject *_wrap_Prefix4_Includes__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5729 PyObject *resultobj = 0;
5735 unsigned char val2 ;
5739 PyObject * obj0 = 0 ;
5740 PyObject * obj1 = 0 ;
5741 PyObject * obj2 = 0 ;
5744 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4_Includes",&obj0,&obj1,&obj2)) SWIG_fail;
5745 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
5746 if (!SWIG_IsOK(ecode1)) {
5747 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "Prefix4_Includes" "', argument " "1"" of type '" "uint32_t""'");
5749 arg1 =
static_cast< uint32_t
>(val1);
5750 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
5751 if (!SWIG_IsOK(ecode2)) {
5752 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_Includes" "', argument " "2"" of type '" "uint8_t""'");
5754 arg2 =
static_cast< uint8_t
>(val2);
5755 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
5756 if (!SWIG_IsOK(ecode3)) {
5757 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_Includes" "', argument " "3"" of type '" "uint32_t""'");
5759 arg3 =
static_cast< uint32_t
>(val3);
5761 resultobj = SWIG_From_bool(static_cast< bool >(result));
5768 SWIGINTERN PyObject *_wrap_Prefix4_Includes__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5769 PyObject *resultobj = 0;
5776 unsigned char val2 ;
5780 unsigned char val4 ;
5782 PyObject * obj0 = 0 ;
5783 PyObject * obj1 = 0 ;
5784 PyObject * obj2 = 0 ;
5785 PyObject * obj3 = 0 ;
5788 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Prefix4_Includes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5789 ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
5790 if (!SWIG_IsOK(ecode1)) {
5791 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "Prefix4_Includes" "', argument " "1"" of type '" "uint32_t""'");
5793 arg1 =
static_cast< uint32_t
>(val1);
5794 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
5795 if (!SWIG_IsOK(ecode2)) {
5796 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_Includes" "', argument " "2"" of type '" "uint8_t""'");
5798 arg2 =
static_cast< uint8_t
>(val2);
5799 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
5800 if (!SWIG_IsOK(ecode3)) {
5801 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_Includes" "', argument " "3"" of type '" "uint32_t""'");
5803 arg3 =
static_cast< uint32_t
>(val3);
5804 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
5805 if (!SWIG_IsOK(ecode4)) {
5806 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Prefix4_Includes" "', argument " "4"" of type '" "uint8_t""'");
5808 arg4 =
static_cast< uint8_t
>(val4);
5810 resultobj = SWIG_From_bool(static_cast< bool >(result));
5817 SWIGINTERN PyObject *_wrap_Prefix4_Includes(PyObject *
self, PyObject *args) {
5819 PyObject *argv[5] = {
5824 if (!PyTuple_Check(args)) SWIG_fail;
5825 argc = args ? PyObject_Length(args) : 0;
5826 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
5827 argv[ii] = PyTuple_GET_ITEM(args,ii);
5832 int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
5833 _v = SWIG_CheckState(res);
5837 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
5838 _v = SWIG_CheckState(res);
5842 int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
5843 _v = SWIG_CheckState(res);
5846 return _wrap_Prefix4_Includes__SWIG_0(
self, args);
5854 int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
5855 _v = SWIG_CheckState(res);
5859 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
5860 _v = SWIG_CheckState(res);
5864 int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
5865 _v = SWIG_CheckState(res);
5869 int res = SWIG_AsVal_unsigned_SS_char(argv[3], NULL);
5870 _v = SWIG_CheckState(res);
5873 return _wrap_Prefix4_Includes__SWIG_1(
self, args);
5881 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Prefix4_Includes'.\n" 5882 " Possible C/C++ prototypes are:\n" 5883 " libbgp::Prefix4::Includes(uint32_t,uint8_t,uint32_t)\n" 5884 " libbgp::Prefix4::Includes(uint32_t,uint8_t,uint32_t,uint8_t)\n");
5889 SWIGINTERN PyObject *_wrap_Prefix4_includes__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5890 PyObject *resultobj = 0;
5897 PyObject * obj0 = 0 ;
5898 PyObject * obj1 = 0 ;
5901 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4_includes",&obj0,&obj1)) SWIG_fail;
5902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
5903 if (!SWIG_IsOK(res1)) {
5904 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_includes" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
5907 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
5908 if (!SWIG_IsOK(ecode2)) {
5909 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_includes" "', argument " "2"" of type '" "uint32_t""'");
5911 arg2 =
static_cast< uint32_t
>(val2);
5913 resultobj = SWIG_From_bool(static_cast< bool >(result));
5920 SWIGINTERN PyObject *_wrap_Prefix4_includes__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5921 PyObject *resultobj = 0;
5923 char *arg2 = (
char *) 0 ;
5929 PyObject * obj0 = 0 ;
5930 PyObject * obj1 = 0 ;
5933 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4_includes",&obj0,&obj1)) SWIG_fail;
5934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
5935 if (!SWIG_IsOK(res1)) {
5936 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_includes" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
5939 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
5940 if (!SWIG_IsOK(res2)) {
5941 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4_includes" "', argument " "2"" of type '" "char const *""'");
5943 arg2 =
reinterpret_cast< char *
>(buf2);
5944 result = (bool)((
libbgp::Prefix4 const *)arg1)->includes((
char const *)arg2);
5945 resultobj = SWIG_From_bool(static_cast< bool >(result));
5946 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
5949 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
5954 SWIGINTERN PyObject *_wrap_Prefix4_includes__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5955 PyObject *resultobj = 0;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5966 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4_includes",&obj0,&obj1)) SWIG_fail;
5967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
5968 if (!SWIG_IsOK(res1)) {
5969 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_includes" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
5972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
5973 if (!SWIG_IsOK(res2)) {
5974 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4_includes" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5977 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4_includes" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
5981 resultobj = SWIG_From_bool(static_cast< bool >(result));
5988 SWIGINTERN PyObject *_wrap_Prefix4_includes__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
5989 PyObject *resultobj = 0;
5997 unsigned char val3 ;
5999 PyObject * obj0 = 0 ;
6000 PyObject * obj1 = 0 ;
6001 PyObject * obj2 = 0 ;
6004 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4_includes",&obj0,&obj1,&obj2)) SWIG_fail;
6005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_includes" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6010 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6011 if (!SWIG_IsOK(ecode2)) {
6012 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_includes" "', argument " "2"" of type '" "uint32_t""'");
6014 arg2 =
static_cast< uint32_t
>(val2);
6015 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
6016 if (!SWIG_IsOK(ecode3)) {
6017 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_includes" "', argument " "3"" of type '" "uint8_t""'");
6019 arg3 =
static_cast< uint8_t
>(val3);
6021 resultobj = SWIG_From_bool(static_cast< bool >(result));
6028 SWIGINTERN PyObject *_wrap_Prefix4_includes__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6029 PyObject *resultobj = 0;
6031 char *arg2 = (
char *) 0 ;
6038 unsigned char val3 ;
6040 PyObject * obj0 = 0 ;
6041 PyObject * obj1 = 0 ;
6042 PyObject * obj2 = 0 ;
6045 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4_includes",&obj0,&obj1,&obj2)) SWIG_fail;
6046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6047 if (!SWIG_IsOK(res1)) {
6048 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_includes" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6051 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
6052 if (!SWIG_IsOK(res2)) {
6053 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4_includes" "', argument " "2"" of type '" "char const *""'");
6055 arg2 =
reinterpret_cast< char *
>(buf2);
6056 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
6057 if (!SWIG_IsOK(ecode3)) {
6058 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_includes" "', argument " "3"" of type '" "uint8_t""'");
6060 arg3 =
static_cast< uint8_t
>(val3);
6061 result = (bool)((
libbgp::Prefix4 const *)arg1)->includes((
char const *)arg2,arg3);
6062 resultobj = SWIG_From_bool(static_cast< bool >(result));
6063 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
6066 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
6071 SWIGINTERN PyObject *_wrap_Prefix4_includes(PyObject *
self, PyObject *args) {
6073 PyObject *argv[4] = {
6078 if (!PyTuple_Check(args)) SWIG_fail;
6079 argc = args ? PyObject_Length(args) : 0;
6080 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6081 argv[ii] = PyTuple_GET_ITEM(args,ii);
6086 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix4, 0);
6087 _v = SWIG_CheckState(res);
6089 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_libbgp__Prefix, 0);
6090 _v = SWIG_CheckState(res);
6092 return _wrap_Prefix4_includes__SWIG_2(
self, args);
6099 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix4, 0);
6100 _v = SWIG_CheckState(res);
6103 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
6104 _v = SWIG_CheckState(res);
6107 return _wrap_Prefix4_includes__SWIG_0(
self, args);
6114 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix4, 0);
6115 _v = SWIG_CheckState(res);
6117 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
6118 _v = SWIG_CheckState(res);
6120 return _wrap_Prefix4_includes__SWIG_1(
self, args);
6127 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix4, 0);
6128 _v = SWIG_CheckState(res);
6131 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
6132 _v = SWIG_CheckState(res);
6136 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
6137 _v = SWIG_CheckState(res);
6140 return _wrap_Prefix4_includes__SWIG_3(
self, args);
6148 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix4, 0);
6149 _v = SWIG_CheckState(res);
6151 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
6152 _v = SWIG_CheckState(res);
6155 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
6156 _v = SWIG_CheckState(res);
6159 return _wrap_Prefix4_includes__SWIG_4(
self, args);
6166 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Prefix4_includes'.\n" 6167 " Possible C/C++ prototypes are:\n" 6168 " libbgp::Prefix4::includes(uint32_t) const\n" 6169 " libbgp::Prefix4::includes(char const *) const\n" 6170 " libbgp::Prefix4::includes(libbgp::Prefix const &) const\n" 6171 " libbgp::Prefix4::includes(uint32_t,uint8_t) const\n" 6172 " libbgp::Prefix4::includes(char const *,uint8_t) const\n");
6177 SWIGINTERN PyObject *_wrap_Prefix4___eq__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6178 PyObject *resultobj = 0;
6185 PyObject * obj0 = 0 ;
6186 PyObject * obj1 = 0 ;
6189 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4___eq__",&obj0,&obj1)) SWIG_fail;
6190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6191 if (!SWIG_IsOK(res1)) {
6192 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4___eq__" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6195 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
6196 if (!SWIG_IsOK(res2)) {
6197 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4___eq__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6200 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4___eq__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6204 resultobj = SWIG_From_bool(static_cast< bool >(result));
6211 SWIGINTERN PyObject *_wrap_Prefix4___gt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6212 PyObject *resultobj = 0;
6219 PyObject * obj0 = 0 ;
6220 PyObject * obj1 = 0 ;
6223 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4___gt__",&obj0,&obj1)) SWIG_fail;
6224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6225 if (!SWIG_IsOK(res1)) {
6226 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4___gt__" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
6230 if (!SWIG_IsOK(res2)) {
6231 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4___gt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6234 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4___gt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6238 resultobj = SWIG_From_bool(static_cast< bool >(result));
6245 SWIGINTERN PyObject *_wrap_Prefix4___lt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6246 PyObject *resultobj = 0;
6253 PyObject * obj0 = 0 ;
6254 PyObject * obj1 = 0 ;
6257 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4___lt__",&obj0,&obj1)) SWIG_fail;
6258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6259 if (!SWIG_IsOK(res1)) {
6260 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4___lt__" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
6264 if (!SWIG_IsOK(res2)) {
6265 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4___lt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6268 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4___lt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6272 resultobj = SWIG_From_bool(static_cast< bool >(result));
6279 SWIGINTERN PyObject *_wrap_Prefix4___ge__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6280 PyObject *resultobj = 0;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6291 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4___ge__",&obj0,&obj1)) SWIG_fail;
6292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6293 if (!SWIG_IsOK(res1)) {
6294 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4___ge__" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
6298 if (!SWIG_IsOK(res2)) {
6299 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4___ge__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6302 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4___ge__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6306 resultobj = SWIG_From_bool(static_cast< bool >(result));
6313 SWIGINTERN PyObject *_wrap_Prefix4___le__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6314 PyObject *resultobj = 0;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6325 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4___le__",&obj0,&obj1)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4___le__" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
6332 if (!SWIG_IsOK(res2)) {
6333 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4___le__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6336 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4___le__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6340 resultobj = SWIG_From_bool(static_cast< bool >(result));
6347 SWIGINTERN PyObject *_wrap_Prefix4___ne__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6348 PyObject *resultobj = 0;
6355 PyObject * obj0 = 0 ;
6356 PyObject * obj1 = 0 ;
6359 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4___ne__",&obj0,&obj1)) SWIG_fail;
6360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6361 if (!SWIG_IsOK(res1)) {
6362 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4___ne__" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
6366 if (!SWIG_IsOK(res2)) {
6367 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4___ne__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6370 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4___ne__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
6374 resultobj = SWIG_From_bool(static_cast< bool >(result));
6381 SWIGINTERN PyObject *_wrap_Prefix4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6382 PyObject *resultobj = 0;
6390 unsigned char val3 ;
6392 PyObject * obj0 = 0 ;
6393 PyObject * obj1 = 0 ;
6394 PyObject * obj2 = 0 ;
6397 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4_set",&obj0,&obj1,&obj2)) SWIG_fail;
6398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_set" "', argument " "1"" of type '" "libbgp::Prefix4 *""'");
6403 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6404 if (!SWIG_IsOK(ecode2)) {
6405 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_set" "', argument " "2"" of type '" "uint32_t""'");
6407 arg2 =
static_cast< uint32_t
>(val2);
6408 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
6409 if (!SWIG_IsOK(ecode3)) {
6410 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix4_set" "', argument " "3"" of type '" "uint8_t""'");
6412 arg3 =
static_cast< uint8_t
>(val3);
6413 result = (bool)(arg1)->set(arg2,arg3);
6414 resultobj = SWIG_From_bool(static_cast< bool >(result));
6421 SWIGINTERN PyObject *_wrap_Prefix4_setPrefix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6422 PyObject *resultobj = 0;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6433 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4_setPrefix",&obj0,&obj1)) SWIG_fail;
6434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6435 if (!SWIG_IsOK(res1)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_setPrefix" "', argument " "1"" of type '" "libbgp::Prefix4 *""'");
6439 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6440 if (!SWIG_IsOK(ecode2)) {
6441 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_setPrefix" "', argument " "2"" of type '" "uint32_t""'");
6443 arg2 =
static_cast< uint32_t
>(val2);
6444 result = (bool)(arg1)->setPrefix(arg2);
6445 resultobj = SWIG_From_bool(static_cast< bool >(result));
6452 SWIGINTERN PyObject *_wrap_Prefix4_setLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6453 PyObject *resultobj = 0;
6458 unsigned char val2 ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6464 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4_setLength",&obj0,&obj1)) SWIG_fail;
6465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6466 if (!SWIG_IsOK(res1)) {
6467 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_setLength" "', argument " "1"" of type '" "libbgp::Prefix4 *""'");
6470 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
6471 if (!SWIG_IsOK(ecode2)) {
6472 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix4_setLength" "', argument " "2"" of type '" "uint8_t""'");
6474 arg2 =
static_cast< uint8_t
>(val2);
6475 result = (bool)(arg1)->setLength(arg2);
6476 resultobj = SWIG_From_bool(static_cast< bool >(result));
6483 SWIGINTERN PyObject *_wrap_Prefix4_getPrefix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6484 PyObject *resultobj = 0;
6488 PyObject * obj0 = 0 ;
6491 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix4_getPrefix",&obj0)) SWIG_fail;
6492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6493 if (!SWIG_IsOK(res1)) {
6494 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_getPrefix" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6498 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6505 SWIGINTERN PyObject *_wrap_Prefix4_getLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6506 PyObject *resultobj = 0;
6510 PyObject * obj0 = 0 ;
6513 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix4_getLength",&obj0)) SWIG_fail;
6514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_getLength" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6520 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
6527 SWIGINTERN PyObject *_wrap_Prefix4_getMask(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6528 PyObject *resultobj = 0;
6532 PyObject * obj0 = 0 ;
6535 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix4_getMask",&obj0)) SWIG_fail;
6536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4_getMask" "', argument " "1"" of type '" "libbgp::Prefix4 const *""'");
6542 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6549 SWIGINTERN PyObject *_wrap_delete_Prefix4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6550 PyObject *resultobj = 0;
6554 PyObject * obj0 = 0 ;
6556 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Prefix4",&obj0)) SWIG_fail;
6557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix4, SWIG_POINTER_DISOWN | 0 );
6558 if (!SWIG_IsOK(res1)) {
6559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Prefix4" "', argument " "1"" of type '" "libbgp::Prefix4 *""'");
6563 resultobj = SWIG_Py_Void();
6570 SWIGINTERN PyObject *Prefix4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6572 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
6573 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Prefix4, SWIG_NewClientData(obj));
6574 return SWIG_Py_Void();
6577 SWIGINTERN PyObject *_wrap_cidr_to_mask6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6578 PyObject *resultobj = 0;
6581 unsigned char val1 ;
6585 PyObject * obj0 = 0 ;
6586 PyObject * obj1 = 0 ;
6589 if (!PyArg_ParseTuple(args,(
char *)
"OO:cidr_to_mask6",&obj0,&obj1)) SWIG_fail;
6590 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
6591 if (!SWIG_IsOK(ecode1)) {
6592 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "cidr_to_mask6" "', argument " "1"" of type '" "uint8_t""'");
6594 arg1 =
static_cast< uint8_t
>(val1);
6595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
6596 if (!SWIG_IsOK(res2)) {
6597 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "cidr_to_mask6" "', argument " "2"" of type '" "uint8_t [16]""'");
6599 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
6601 resultobj = SWIG_From_bool(static_cast< bool >(result));
6608 SWIGINTERN PyObject *_wrap_mask_ipv6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6609 PyObject *resultobj = 0;
6615 unsigned char val2 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 PyObject * obj2 = 0 ;
6624 if (!PyArg_ParseTuple(args,(
char *)
"OOO:mask_ipv6",&obj0,&obj1,&obj2)) SWIG_fail;
6625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "mask_ipv6" "', argument " "1"" of type '" "uint8_t const [16]""'");
6629 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
6630 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
6631 if (!SWIG_IsOK(ecode2)) {
6632 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "mask_ipv6" "', argument " "2"" of type '" "uint8_t""'");
6634 arg2 =
static_cast< uint8_t
>(val2);
6635 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
6636 if (!SWIG_IsOK(res3)) {
6637 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "mask_ipv6" "', argument " "3"" of type '" "uint8_t [16]""'");
6639 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
6641 resultobj = SWIG_From_bool(static_cast< bool >(result));
6648 SWIGINTERN PyObject *_wrap_v6addr_is_zero(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6649 PyObject *resultobj = 0;
6653 PyObject * obj0 = 0 ;
6656 if (!PyArg_ParseTuple(args,(
char *)
"O:v6addr_is_zero",&obj0)) SWIG_fail;
6657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6658 if (!SWIG_IsOK(res1)) {
6659 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "v6addr_is_zero" "', argument " "1"" of type '" "uint8_t const [16]""'");
6661 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
6663 resultobj = SWIG_From_bool(static_cast< bool >(result));
6670 SWIGINTERN PyObject *_wrap_new_Prefix6__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6671 PyObject *resultobj = 0;
6674 if (!PyArg_ParseTuple(args,(
char *)
":new_Prefix6")) SWIG_fail;
6676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix6, SWIG_POINTER_NEW | 0 );
6683 SWIGINTERN PyObject *_wrap_new_Prefix6__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6684 PyObject *resultobj = 0;
6689 unsigned char val2 ;
6691 PyObject * obj0 = 0 ;
6692 PyObject * obj1 = 0 ;
6695 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Prefix6",&obj0,&obj1)) SWIG_fail;
6696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6697 if (!SWIG_IsOK(res1)) {
6698 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Prefix6" "', argument " "1"" of type '" "uint8_t const [16]""'");
6700 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
6701 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
6702 if (!SWIG_IsOK(ecode2)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Prefix6" "', argument " "2"" of type '" "uint8_t""'");
6705 arg2 =
static_cast< uint8_t
>(val2);
6707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix6, SWIG_POINTER_NEW | 0 );
6714 SWIGINTERN PyObject *_wrap_new_Prefix6__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6715 PyObject *resultobj = 0;
6716 char *arg1 = (
char *) 0 ;
6721 unsigned char val2 ;
6723 PyObject * obj0 = 0 ;
6724 PyObject * obj1 = 0 ;
6727 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_Prefix6",&obj0,&obj1)) SWIG_fail;
6728 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
6729 if (!SWIG_IsOK(res1)) {
6730 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_Prefix6" "', argument " "1"" of type '" "char const *""'");
6732 arg1 =
reinterpret_cast< char *
>(buf1);
6733 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
6734 if (!SWIG_IsOK(ecode2)) {
6735 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_Prefix6" "', argument " "2"" of type '" "uint8_t""'");
6737 arg2 =
static_cast< uint8_t
>(val2);
6739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix6, SWIG_POINTER_NEW | 0 );
6740 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
6743 if (alloc1 == SWIG_NEWOBJ)
delete[] buf1;
6748 SWIGINTERN PyObject *_wrap_new_Prefix6(PyObject *
self, PyObject *args) {
6750 PyObject *argv[3] = {
6755 if (!PyTuple_Check(args)) SWIG_fail;
6756 argc = args ? PyObject_Length(args) : 0;
6757 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6758 argv[ii] = PyTuple_GET_ITEM(args,ii);
6761 return _wrap_new_Prefix6__SWIG_0(
self, args);
6766 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
6767 _v = SWIG_CheckState(res);
6770 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
6771 _v = SWIG_CheckState(res);
6774 return _wrap_new_Prefix6__SWIG_1(
self, args);
6780 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6781 _v = SWIG_CheckState(res);
6784 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
6785 _v = SWIG_CheckState(res);
6788 return _wrap_new_Prefix6__SWIG_2(
self, args);
6794 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_Prefix6'.\n" 6795 " Possible C/C++ prototypes are:\n" 6796 " libbgp::Prefix6::Prefix6()\n" 6797 " libbgp::Prefix6::Prefix6(uint8_t const [16],uint8_t)\n" 6798 " libbgp::Prefix6::Prefix6(char const *,uint8_t)\n");
6803 SWIGINTERN PyObject *_wrap_Prefix6_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6804 PyObject *resultobj = 0;
6806 uint8_t *arg2 = (uint8_t *) 0 ;
6814 PyObject * obj0 = 0 ;
6815 PyObject * obj1 = 0 ;
6816 PyObject * obj2 = 0 ;
6819 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6_parse",&obj0,&obj1,&obj2)) SWIG_fail;
6820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
6821 if (!SWIG_IsOK(res1)) {
6822 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_parse" "', argument " "1"" of type '" "libbgp::Prefix6 *""'");
6825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
6826 if (!SWIG_IsOK(res2)) {
6827 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_parse" "', argument " "2"" of type '" "uint8_t const *""'");
6829 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
6830 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
6831 if (!SWIG_IsOK(ecode3)) {
6832 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix6_parse" "', argument " "3"" of type '" "size_t""'");
6834 arg3 =
static_cast< size_t >(val3);
6835 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
6836 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
6843 SWIGINTERN PyObject *_wrap_Prefix6_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6844 PyObject *resultobj = 0;
6846 uint8_t *arg2 = (uint8_t *) 0 ;
6854 PyObject * obj0 = 0 ;
6855 PyObject * obj1 = 0 ;
6856 PyObject * obj2 = 0 ;
6859 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6_write",&obj0,&obj1,&obj2)) SWIG_fail;
6860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
6861 if (!SWIG_IsOK(res1)) {
6862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_write" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
6865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
6866 if (!SWIG_IsOK(res2)) {
6867 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_write" "', argument " "2"" of type '" "uint8_t *""'");
6869 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
6870 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
6871 if (!SWIG_IsOK(ecode3)) {
6872 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix6_write" "', argument " "3"" of type '" "size_t""'");
6874 arg3 =
static_cast< size_t >(val3);
6876 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
6883 SWIGINTERN PyObject *_wrap_Prefix6_Includes__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6884 PyObject *resultobj = 0;
6890 unsigned char val2 ;
6894 PyObject * obj0 = 0 ;
6895 PyObject * obj1 = 0 ;
6896 PyObject * obj2 = 0 ;
6899 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6_Includes",&obj0,&obj1,&obj2)) SWIG_fail;
6900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6901 if (!SWIG_IsOK(res1)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_Includes" "', argument " "1"" of type '" "uint8_t const [16]""'");
6904 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
6905 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
6906 if (!SWIG_IsOK(ecode2)) {
6907 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix6_Includes" "', argument " "2"" of type '" "uint8_t""'");
6909 arg2 =
static_cast< uint8_t
>(val2);
6910 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
6911 if (!SWIG_IsOK(res3)) {
6912 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Prefix6_Includes" "', argument " "3"" of type '" "uint8_t const [16]""'");
6914 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
6916 resultobj = SWIG_From_bool(static_cast< bool >(result));
6923 SWIGINTERN PyObject *_wrap_Prefix6_Includes__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
6924 PyObject *resultobj = 0;
6931 unsigned char val2 ;
6935 unsigned char val4 ;
6937 PyObject * obj0 = 0 ;
6938 PyObject * obj1 = 0 ;
6939 PyObject * obj2 = 0 ;
6940 PyObject * obj3 = 0 ;
6943 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:Prefix6_Includes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
6945 if (!SWIG_IsOK(res1)) {
6946 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_Includes" "', argument " "1"" of type '" "uint8_t const [16]""'");
6948 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
6949 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
6950 if (!SWIG_IsOK(ecode2)) {
6951 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix6_Includes" "', argument " "2"" of type '" "uint8_t""'");
6953 arg2 =
static_cast< uint8_t
>(val2);
6954 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
6955 if (!SWIG_IsOK(res3)) {
6956 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Prefix6_Includes" "', argument " "3"" of type '" "uint8_t const [16]""'");
6958 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
6959 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
6960 if (!SWIG_IsOK(ecode4)) {
6961 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "Prefix6_Includes" "', argument " "4"" of type '" "uint8_t""'");
6963 arg4 =
static_cast< uint8_t
>(val4);
6965 resultobj = SWIG_From_bool(static_cast< bool >(result));
6972 SWIGINTERN PyObject *_wrap_Prefix6_Includes(PyObject *
self, PyObject *args) {
6974 PyObject *argv[5] = {
6979 if (!PyTuple_Check(args)) SWIG_fail;
6980 argc = args ? PyObject_Length(args) : 0;
6981 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
6982 argv[ii] = PyTuple_GET_ITEM(args,ii);
6987 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
6988 _v = SWIG_CheckState(res);
6991 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
6992 _v = SWIG_CheckState(res);
6996 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
6997 _v = SWIG_CheckState(res);
6999 return _wrap_Prefix6_Includes__SWIG_0(
self, args);
7007 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
7008 _v = SWIG_CheckState(res);
7011 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
7012 _v = SWIG_CheckState(res);
7016 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
7017 _v = SWIG_CheckState(res);
7020 int res = SWIG_AsVal_unsigned_SS_char(argv[3], NULL);
7021 _v = SWIG_CheckState(res);
7024 return _wrap_Prefix6_Includes__SWIG_1(
self, args);
7032 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Prefix6_Includes'.\n" 7033 " Possible C/C++ prototypes are:\n" 7034 " libbgp::Prefix6::Includes(uint8_t const [16],uint8_t,uint8_t const [16])\n" 7035 " libbgp::Prefix6::Includes(uint8_t const [16],uint8_t,uint8_t const [16],uint8_t)\n");
7040 SWIGINTERN PyObject *_wrap_Prefix6_includes__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7041 PyObject *resultobj = 0;
7048 PyObject * obj0 = 0 ;
7049 PyObject * obj1 = 0 ;
7052 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_includes",&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_includes" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7059 if (!SWIG_IsOK(res2)) {
7060 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_includes" "', argument " "2"" of type '" "uint8_t const [16]""'");
7062 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7063 result = (bool)((
libbgp::Prefix6 const *)arg1)->includes((uint8_t
const (*))arg2);
7064 resultobj = SWIG_From_bool(static_cast< bool >(result));
7071 SWIGINTERN PyObject *_wrap_Prefix6_includes__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7072 PyObject *resultobj = 0;
7074 char *arg2 = (
char *) 0 ;
7080 PyObject * obj0 = 0 ;
7081 PyObject * obj1 = 0 ;
7084 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_includes",&obj0,&obj1)) SWIG_fail;
7085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_includes" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7090 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
7091 if (!SWIG_IsOK(res2)) {
7092 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_includes" "', argument " "2"" of type '" "char const *""'");
7094 arg2 =
reinterpret_cast< char *
>(buf2);
7095 result = (bool)((
libbgp::Prefix6 const *)arg1)->includes((
char const *)arg2);
7096 resultobj = SWIG_From_bool(static_cast< bool >(result));
7097 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
7100 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
7105 SWIGINTERN PyObject *_wrap_Prefix6_includes__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7106 PyObject *resultobj = 0;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7117 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_includes",&obj0,&obj1)) SWIG_fail;
7118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7119 if (!SWIG_IsOK(res1)) {
7120 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_includes" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7124 if (!SWIG_IsOK(res2)) {
7125 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_includes" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7128 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6_includes" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7132 resultobj = SWIG_From_bool(static_cast< bool >(result));
7139 SWIGINTERN PyObject *_wrap_Prefix6_includes__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7140 PyObject *resultobj = 0;
7148 unsigned char val3 ;
7150 PyObject * obj0 = 0 ;
7151 PyObject * obj1 = 0 ;
7152 PyObject * obj2 = 0 ;
7155 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6_includes",&obj0,&obj1,&obj2)) SWIG_fail;
7156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7157 if (!SWIG_IsOK(res1)) {
7158 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_includes" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7161 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7162 if (!SWIG_IsOK(res2)) {
7163 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_includes" "', argument " "2"" of type '" "uint8_t const [16]""'");
7165 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7166 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7167 if (!SWIG_IsOK(ecode3)) {
7168 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix6_includes" "', argument " "3"" of type '" "uint8_t""'");
7170 arg3 =
static_cast< uint8_t
>(val3);
7171 result = (bool)((
libbgp::Prefix6 const *)arg1)->includes((uint8_t
const (*))arg2,arg3);
7172 resultobj = SWIG_From_bool(static_cast< bool >(result));
7179 SWIGINTERN PyObject *_wrap_Prefix6_includes__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7180 PyObject *resultobj = 0;
7182 char *arg2 = (
char *) 0 ;
7189 unsigned char val3 ;
7191 PyObject * obj0 = 0 ;
7192 PyObject * obj1 = 0 ;
7193 PyObject * obj2 = 0 ;
7196 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6_includes",&obj0,&obj1,&obj2)) SWIG_fail;
7197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7198 if (!SWIG_IsOK(res1)) {
7199 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_includes" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7202 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
7203 if (!SWIG_IsOK(res2)) {
7204 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_includes" "', argument " "2"" of type '" "char const *""'");
7206 arg2 =
reinterpret_cast< char *
>(buf2);
7207 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7208 if (!SWIG_IsOK(ecode3)) {
7209 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix6_includes" "', argument " "3"" of type '" "uint8_t""'");
7211 arg3 =
static_cast< uint8_t
>(val3);
7212 result = (bool)((
libbgp::Prefix6 const *)arg1)->includes((
char const *)arg2,arg3);
7213 resultobj = SWIG_From_bool(static_cast< bool >(result));
7214 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
7217 if (alloc2 == SWIG_NEWOBJ)
delete[] buf2;
7222 SWIGINTERN PyObject *_wrap_Prefix6_includes(PyObject *
self, PyObject *args) {
7224 PyObject *argv[4] = {
7229 if (!PyTuple_Check(args)) SWIG_fail;
7230 argc = args ? PyObject_Length(args) : 0;
7231 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7232 argv[ii] = PyTuple_GET_ITEM(args,ii);
7237 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix6, 0);
7238 _v = SWIG_CheckState(res);
7241 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
7242 _v = SWIG_CheckState(res);
7244 return _wrap_Prefix6_includes__SWIG_0(
self, args);
7251 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix6, 0);
7252 _v = SWIG_CheckState(res);
7254 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_libbgp__Prefix, 0);
7255 _v = SWIG_CheckState(res);
7257 return _wrap_Prefix6_includes__SWIG_2(
self, args);
7264 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix6, 0);
7265 _v = SWIG_CheckState(res);
7267 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7268 _v = SWIG_CheckState(res);
7270 return _wrap_Prefix6_includes__SWIG_1(
self, args);
7277 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix6, 0);
7278 _v = SWIG_CheckState(res);
7281 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
7282 _v = SWIG_CheckState(res);
7285 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
7286 _v = SWIG_CheckState(res);
7289 return _wrap_Prefix6_includes__SWIG_3(
self, args);
7297 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__Prefix6, 0);
7298 _v = SWIG_CheckState(res);
7300 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7301 _v = SWIG_CheckState(res);
7304 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
7305 _v = SWIG_CheckState(res);
7308 return _wrap_Prefix6_includes__SWIG_4(
self, args);
7315 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'Prefix6_includes'.\n" 7316 " Possible C/C++ prototypes are:\n" 7317 " libbgp::Prefix6::includes(uint8_t const [16]) const\n" 7318 " libbgp::Prefix6::includes(char const *) const\n" 7319 " libbgp::Prefix6::includes(libbgp::Prefix const &) const\n" 7320 " libbgp::Prefix6::includes(uint8_t const [16],uint8_t) const\n" 7321 " libbgp::Prefix6::includes(char const *,uint8_t) const\n");
7326 SWIGINTERN PyObject *_wrap_Prefix6___eq__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7327 PyObject *resultobj = 0;
7334 PyObject * obj0 = 0 ;
7335 PyObject * obj1 = 0 ;
7338 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6___eq__",&obj0,&obj1)) SWIG_fail;
7339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6___eq__" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7345 if (!SWIG_IsOK(res2)) {
7346 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6___eq__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7349 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6___eq__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7353 resultobj = SWIG_From_bool(static_cast< bool >(result));
7360 SWIGINTERN PyObject *_wrap_Prefix6___gt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7361 PyObject *resultobj = 0;
7368 PyObject * obj0 = 0 ;
7369 PyObject * obj1 = 0 ;
7372 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6___gt__",&obj0,&obj1)) SWIG_fail;
7373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7374 if (!SWIG_IsOK(res1)) {
7375 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6___gt__" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7379 if (!SWIG_IsOK(res2)) {
7380 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6___gt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7383 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6___gt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7387 resultobj = SWIG_From_bool(static_cast< bool >(result));
7394 SWIGINTERN PyObject *_wrap_Prefix6___lt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7395 PyObject *resultobj = 0;
7402 PyObject * obj0 = 0 ;
7403 PyObject * obj1 = 0 ;
7406 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6___lt__",&obj0,&obj1)) SWIG_fail;
7407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7408 if (!SWIG_IsOK(res1)) {
7409 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6___lt__" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7413 if (!SWIG_IsOK(res2)) {
7414 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6___lt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7417 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6___lt__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7421 resultobj = SWIG_From_bool(static_cast< bool >(result));
7428 SWIGINTERN PyObject *_wrap_Prefix6___ge__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7429 PyObject *resultobj = 0;
7436 PyObject * obj0 = 0 ;
7437 PyObject * obj1 = 0 ;
7440 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6___ge__",&obj0,&obj1)) SWIG_fail;
7441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7442 if (!SWIG_IsOK(res1)) {
7443 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6___ge__" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7447 if (!SWIG_IsOK(res2)) {
7448 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6___ge__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7451 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6___ge__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7455 resultobj = SWIG_From_bool(static_cast< bool >(result));
7462 SWIGINTERN PyObject *_wrap_Prefix6___le__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7463 PyObject *resultobj = 0;
7470 PyObject * obj0 = 0 ;
7471 PyObject * obj1 = 0 ;
7474 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6___le__",&obj0,&obj1)) SWIG_fail;
7475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6___le__" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7481 if (!SWIG_IsOK(res2)) {
7482 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6___le__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7485 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6___le__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7489 resultobj = SWIG_From_bool(static_cast< bool >(result));
7496 SWIGINTERN PyObject *_wrap_Prefix6___ne__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7497 PyObject *resultobj = 0;
7504 PyObject * obj0 = 0 ;
7505 PyObject * obj1 = 0 ;
7508 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6___ne__",&obj0,&obj1)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6___ne__" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
7515 if (!SWIG_IsOK(res2)) {
7516 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6___ne__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7519 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6___ne__" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
7523 resultobj = SWIG_From_bool(static_cast< bool >(result));
7530 SWIGINTERN PyObject *_wrap_Prefix6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7531 PyObject *resultobj = 0;
7539 unsigned char val3 ;
7541 PyObject * obj0 = 0 ;
7542 PyObject * obj1 = 0 ;
7543 PyObject * obj2 = 0 ;
7546 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6_set",&obj0,&obj1,&obj2)) SWIG_fail;
7547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7548 if (!SWIG_IsOK(res1)) {
7549 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_set" "', argument " "1"" of type '" "libbgp::Prefix6 *""'");
7552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7553 if (!SWIG_IsOK(res2)) {
7554 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_set" "', argument " "2"" of type '" "uint8_t const [16]""'");
7556 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7557 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7558 if (!SWIG_IsOK(ecode3)) {
7559 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "Prefix6_set" "', argument " "3"" of type '" "uint8_t""'");
7561 arg3 =
static_cast< uint8_t
>(val3);
7562 result = (bool)(arg1)->set((uint8_t
const (*))arg2,arg3);
7563 resultobj = SWIG_From_bool(static_cast< bool >(result));
7570 SWIGINTERN PyObject *_wrap_Prefix6_setPrefix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7571 PyObject *resultobj = 0;
7578 PyObject * obj0 = 0 ;
7579 PyObject * obj1 = 0 ;
7582 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_setPrefix",&obj0,&obj1)) SWIG_fail;
7583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7584 if (!SWIG_IsOK(res1)) {
7585 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_setPrefix" "', argument " "1"" of type '" "libbgp::Prefix6 *""'");
7588 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7589 if (!SWIG_IsOK(res2)) {
7590 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_setPrefix" "', argument " "2"" of type '" "uint8_t const [16]""'");
7592 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7593 result = (bool)(arg1)->setPrefix((uint8_t
const (*))arg2);
7594 resultobj = SWIG_From_bool(static_cast< bool >(result));
7601 SWIGINTERN PyObject *_wrap_Prefix6_setLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7602 PyObject *resultobj = 0;
7607 unsigned char val2 ;
7609 PyObject * obj0 = 0 ;
7610 PyObject * obj1 = 0 ;
7613 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_setLength",&obj0,&obj1)) SWIG_fail;
7614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7615 if (!SWIG_IsOK(res1)) {
7616 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_setLength" "', argument " "1"" of type '" "libbgp::Prefix6 *""'");
7619 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7620 if (!SWIG_IsOK(ecode2)) {
7621 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Prefix6_setLength" "', argument " "2"" of type '" "uint8_t""'");
7623 arg2 =
static_cast< uint8_t
>(val2);
7624 result = (bool)(arg1)->setLength(arg2);
7625 resultobj = SWIG_From_bool(static_cast< bool >(result));
7632 SWIGINTERN PyObject *_wrap_Prefix6_getPrefix(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7633 PyObject *resultobj = 0;
7640 PyObject * obj0 = 0 ;
7641 PyObject * obj1 = 0 ;
7643 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_getPrefix",&obj0,&obj1)) SWIG_fail;
7644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7645 if (!SWIG_IsOK(res1)) {
7646 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_getPrefix" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7650 if (!SWIG_IsOK(res2)) {
7651 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_getPrefix" "', argument " "2"" of type '" "uint8_t [16]""'");
7653 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7655 resultobj = SWIG_Py_Void();
7662 SWIGINTERN PyObject *_wrap_Prefix6_getLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7663 PyObject *resultobj = 0;
7667 PyObject * obj0 = 0 ;
7670 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix6_getLength",&obj0)) SWIG_fail;
7671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7672 if (!SWIG_IsOK(res1)) {
7673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_getLength" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7677 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
7684 SWIGINTERN PyObject *_wrap_Prefix6_getMask(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7685 PyObject *resultobj = 0;
7692 PyObject * obj0 = 0 ;
7693 PyObject * obj1 = 0 ;
7695 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6_getMask",&obj0,&obj1)) SWIG_fail;
7696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
7697 if (!SWIG_IsOK(res1)) {
7698 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6_getMask" "', argument " "1"" of type '" "libbgp::Prefix6 const *""'");
7701 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7702 if (!SWIG_IsOK(res2)) {
7703 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6_getMask" "', argument " "2"" of type '" "uint8_t [16]""'");
7705 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7707 resultobj = SWIG_Py_Void();
7714 SWIGINTERN PyObject *_wrap_delete_Prefix6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7715 PyObject *resultobj = 0;
7719 PyObject * obj0 = 0 ;
7721 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Prefix6",&obj0)) SWIG_fail;
7722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Prefix6, SWIG_POINTER_DISOWN | 0 );
7723 if (!SWIG_IsOK(res1)) {
7724 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Prefix6" "', argument " "1"" of type '" "libbgp::Prefix6 *""'");
7728 resultobj = SWIG_Py_Void();
7735 SWIGINTERN PyObject *Prefix6_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7737 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
7738 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Prefix6, SWIG_NewClientData(obj));
7739 return SWIG_Py_Void();
7742 SWIGINTERN PyObject *_wrap_BgpCapability_code_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7743 PyObject *resultobj = 0;
7748 unsigned char val2 ;
7750 PyObject * obj0 = 0 ;
7751 PyObject * obj1 = 0 ;
7753 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpCapability_code_set",&obj0,&obj1)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability, 0 | 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability_code_set" "', argument " "1"" of type '" "libbgp::BgpCapability *""'");
7759 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7760 if (!SWIG_IsOK(ecode2)) {
7761 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapability_code_set" "', argument " "2"" of type '" "uint8_t""'");
7763 arg2 =
static_cast< uint8_t
>(val2);
7764 if (arg1) (arg1)->code = arg2;
7765 resultobj = SWIG_Py_Void();
7772 SWIGINTERN PyObject *_wrap_BgpCapability_code_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7773 PyObject *resultobj = 0;
7777 PyObject * obj0 = 0 ;
7780 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpCapability_code_get",&obj0)) SWIG_fail;
7781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability, 0 | 0 );
7782 if (!SWIG_IsOK(res1)) {
7783 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability_code_get" "', argument " "1"" of type '" "libbgp::BgpCapability *""'");
7786 result = (uint8_t) ((arg1)->code);
7787 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
7794 SWIGINTERN PyObject *_wrap_delete_BgpCapability(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7795 PyObject *resultobj = 0;
7799 PyObject * obj0 = 0 ;
7801 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpCapability",&obj0)) SWIG_fail;
7802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability, SWIG_POINTER_DISOWN | 0 );
7803 if (!SWIG_IsOK(res1)) {
7804 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpCapability" "', argument " "1"" of type '" "libbgp::BgpCapability *""'");
7808 resultobj = SWIG_Py_Void();
7815 SWIGINTERN PyObject *_wrap_BgpCapability_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7816 PyObject *resultobj = 0;
7818 uint8_t *arg2 = (uint8_t *) 0 ;
7826 PyObject * obj0 = 0 ;
7827 PyObject * obj1 = 0 ;
7828 PyObject * obj2 = 0 ;
7831 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapability_parse",&obj0,&obj1,&obj2)) SWIG_fail;
7832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability, 0 | 0 );
7833 if (!SWIG_IsOK(res1)) {
7834 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability_parse" "', argument " "1"" of type '" "libbgp::BgpCapability *""'");
7837 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7838 if (!SWIG_IsOK(res2)) {
7839 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapability_parse" "', argument " "2"" of type '" "uint8_t const *""'");
7841 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7842 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7843 if (!SWIG_IsOK(ecode3)) {
7844 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapability_parse" "', argument " "3"" of type '" "size_t""'");
7846 arg3 =
static_cast< size_t >(val3);
7847 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
7848 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
7855 SWIGINTERN PyObject *_wrap_BgpCapability_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7856 PyObject *resultobj = 0;
7858 uint8_t *arg2 = (uint8_t *) 0 ;
7866 PyObject * obj0 = 0 ;
7867 PyObject * obj1 = 0 ;
7868 PyObject * obj2 = 0 ;
7871 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapability_write",&obj0,&obj1,&obj2)) SWIG_fail;
7872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability, 0 | 0 );
7873 if (!SWIG_IsOK(res1)) {
7874 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability_write" "', argument " "1"" of type '" "libbgp::BgpCapability const *""'");
7877 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7878 if (!SWIG_IsOK(res2)) {
7879 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapability_write" "', argument " "2"" of type '" "uint8_t *""'");
7881 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
7882 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7883 if (!SWIG_IsOK(ecode3)) {
7884 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapability_write" "', argument " "3"" of type '" "size_t""'");
7886 arg3 =
static_cast< size_t >(val3);
7888 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
7895 SWIGINTERN PyObject *BgpCapability_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7897 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
7898 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpCapability, SWIG_NewClientData(obj));
7899 return SWIG_Py_Void();
7902 SWIGINTERN PyObject *_wrap_new_BgpCapability4BytesAsn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7903 PyObject *resultobj = 0;
7907 PyObject * obj0 = 0 ;
7910 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpCapability4BytesAsn",&obj0)) SWIG_fail;
7911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
7912 if (!SWIG_IsOK(res1)) {
7913 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpCapability4BytesAsn" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
7917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, SWIG_POINTER_NEW | 0 );
7924 SWIGINTERN PyObject *_wrap_BgpCapability4BytesAsn_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7925 PyObject *resultobj = 0;
7928 uint8_t **arg3 = (uint8_t **) 0 ;
7929 size_t *arg4 = (
size_t *) 0 ;
7938 PyObject * obj0 = 0 ;
7939 PyObject * obj1 = 0 ;
7940 PyObject * obj2 = 0 ;
7941 PyObject * obj3 = 0 ;
7944 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpCapability4BytesAsn_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, 0 | 0 );
7946 if (!SWIG_IsOK(res1)) {
7947 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability4BytesAsn_doPrint" "', argument " "1"" of type '" "libbgp::BgpCapability4BytesAsn const *""'");
7950 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7951 if (!SWIG_IsOK(ecode2)) {
7952 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapability4BytesAsn_doPrint" "', argument " "2"" of type '" "size_t""'");
7954 arg2 =
static_cast< size_t >(val2);
7955 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
7956 if (!SWIG_IsOK(res3)) {
7957 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpCapability4BytesAsn_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
7959 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
7960 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
7961 if (!SWIG_IsOK(res4)) {
7962 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpCapability4BytesAsn_doPrint" "', argument " "4"" of type '" "size_t *""'");
7964 arg4 =
reinterpret_cast< size_t *
>(argp4);
7966 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
7973 SWIGINTERN PyObject *_wrap_BgpCapability4BytesAsn_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
7974 PyObject *resultobj = 0;
7976 uint8_t *arg2 = (uint8_t *) 0 ;
7984 PyObject * obj0 = 0 ;
7985 PyObject * obj1 = 0 ;
7986 PyObject * obj2 = 0 ;
7989 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapability4BytesAsn_parse",&obj0,&obj1,&obj2)) SWIG_fail;
7990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, 0 | 0 );
7991 if (!SWIG_IsOK(res1)) {
7992 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability4BytesAsn_parse" "', argument " "1"" of type '" "libbgp::BgpCapability4BytesAsn *""'");
7995 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
7996 if (!SWIG_IsOK(res2)) {
7997 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapability4BytesAsn_parse" "', argument " "2"" of type '" "uint8_t const *""'");
7999 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8000 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8001 if (!SWIG_IsOK(ecode3)) {
8002 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapability4BytesAsn_parse" "', argument " "3"" of type '" "size_t""'");
8004 arg3 =
static_cast< size_t >(val3);
8005 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
8006 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8013 SWIGINTERN PyObject *_wrap_BgpCapability4BytesAsn_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8014 PyObject *resultobj = 0;
8016 uint8_t *arg2 = (uint8_t *) 0 ;
8024 PyObject * obj0 = 0 ;
8025 PyObject * obj1 = 0 ;
8026 PyObject * obj2 = 0 ;
8029 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapability4BytesAsn_write",&obj0,&obj1,&obj2)) SWIG_fail;
8030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, 0 | 0 );
8031 if (!SWIG_IsOK(res1)) {
8032 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability4BytesAsn_write" "', argument " "1"" of type '" "libbgp::BgpCapability4BytesAsn const *""'");
8035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8036 if (!SWIG_IsOK(res2)) {
8037 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapability4BytesAsn_write" "', argument " "2"" of type '" "uint8_t *""'");
8039 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8040 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8041 if (!SWIG_IsOK(ecode3)) {
8042 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapability4BytesAsn_write" "', argument " "3"" of type '" "size_t""'");
8044 arg3 =
static_cast< size_t >(val3);
8046 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8053 SWIGINTERN PyObject *_wrap_BgpCapability4BytesAsn_my_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8054 PyObject *resultobj = 0;
8061 PyObject * obj0 = 0 ;
8062 PyObject * obj1 = 0 ;
8064 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpCapability4BytesAsn_my_asn_set",&obj0,&obj1)) SWIG_fail;
8065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, 0 | 0 );
8066 if (!SWIG_IsOK(res1)) {
8067 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability4BytesAsn_my_asn_set" "', argument " "1"" of type '" "libbgp::BgpCapability4BytesAsn *""'");
8070 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
8071 if (!SWIG_IsOK(ecode2)) {
8072 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapability4BytesAsn_my_asn_set" "', argument " "2"" of type '" "uint32_t""'");
8074 arg2 =
static_cast< uint32_t
>(val2);
8075 if (arg1) (arg1)->my_asn = arg2;
8076 resultobj = SWIG_Py_Void();
8083 SWIGINTERN PyObject *_wrap_BgpCapability4BytesAsn_my_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8084 PyObject *resultobj = 0;
8088 PyObject * obj0 = 0 ;
8091 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpCapability4BytesAsn_my_asn_get",&obj0)) SWIG_fail;
8092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, 0 | 0 );
8093 if (!SWIG_IsOK(res1)) {
8094 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapability4BytesAsn_my_asn_get" "', argument " "1"" of type '" "libbgp::BgpCapability4BytesAsn *""'");
8097 result = (uint32_t) ((arg1)->my_asn);
8098 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
8105 SWIGINTERN PyObject *_wrap_delete_BgpCapability4BytesAsn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8106 PyObject *resultobj = 0;
8110 PyObject * obj0 = 0 ;
8112 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpCapability4BytesAsn",&obj0)) SWIG_fail;
8113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, SWIG_POINTER_DISOWN | 0 );
8114 if (!SWIG_IsOK(res1)) {
8115 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpCapability4BytesAsn" "', argument " "1"" of type '" "libbgp::BgpCapability4BytesAsn *""'");
8119 resultobj = SWIG_Py_Void();
8126 SWIGINTERN PyObject *BgpCapability4BytesAsn_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8128 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
8129 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpCapability4BytesAsn, SWIG_NewClientData(obj));
8130 return SWIG_Py_Void();
8133 SWIGINTERN PyObject *_wrap_new_BgpCapabilityMpBgp(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8134 PyObject *resultobj = 0;
8138 PyObject * obj0 = 0 ;
8141 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpCapabilityMpBgp",&obj0)) SWIG_fail;
8142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
8143 if (!SWIG_IsOK(res1)) {
8144 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpCapabilityMpBgp" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
8148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, SWIG_POINTER_NEW | 0 );
8155 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8156 PyObject *resultobj = 0;
8159 uint8_t **arg3 = (uint8_t **) 0 ;
8160 size_t *arg4 = (
size_t *) 0 ;
8169 PyObject * obj0 = 0 ;
8170 PyObject * obj1 = 0 ;
8171 PyObject * obj2 = 0 ;
8172 PyObject * obj3 = 0 ;
8175 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpCapabilityMpBgp_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8177 if (!SWIG_IsOK(res1)) {
8178 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_doPrint" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp const *""'");
8181 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8182 if (!SWIG_IsOK(ecode2)) {
8183 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapabilityMpBgp_doPrint" "', argument " "2"" of type '" "size_t""'");
8185 arg2 =
static_cast< size_t >(val2);
8186 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
8187 if (!SWIG_IsOK(res3)) {
8188 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpCapabilityMpBgp_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
8190 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
8191 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
8192 if (!SWIG_IsOK(res4)) {
8193 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpCapabilityMpBgp_doPrint" "', argument " "4"" of type '" "size_t *""'");
8195 arg4 =
reinterpret_cast< size_t *
>(argp4);
8197 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8204 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8205 PyObject *resultobj = 0;
8207 uint8_t *arg2 = (uint8_t *) 0 ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 PyObject * obj2 = 0 ;
8220 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapabilityMpBgp_parse",&obj0,&obj1,&obj2)) SWIG_fail;
8221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8222 if (!SWIG_IsOK(res1)) {
8223 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_parse" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp *""'");
8226 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8227 if (!SWIG_IsOK(res2)) {
8228 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapabilityMpBgp_parse" "', argument " "2"" of type '" "uint8_t const *""'");
8230 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8231 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8232 if (!SWIG_IsOK(ecode3)) {
8233 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapabilityMpBgp_parse" "', argument " "3"" of type '" "size_t""'");
8235 arg3 =
static_cast< size_t >(val3);
8236 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
8237 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8244 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8245 PyObject *resultobj = 0;
8247 uint8_t *arg2 = (uint8_t *) 0 ;
8255 PyObject * obj0 = 0 ;
8256 PyObject * obj1 = 0 ;
8257 PyObject * obj2 = 0 ;
8260 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapabilityMpBgp_write",&obj0,&obj1,&obj2)) SWIG_fail;
8261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8262 if (!SWIG_IsOK(res1)) {
8263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_write" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp const *""'");
8266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8267 if (!SWIG_IsOK(res2)) {
8268 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapabilityMpBgp_write" "', argument " "2"" of type '" "uint8_t *""'");
8270 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8271 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8272 if (!SWIG_IsOK(ecode3)) {
8273 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapabilityMpBgp_write" "', argument " "3"" of type '" "size_t""'");
8275 arg3 =
static_cast< size_t >(val3);
8277 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8284 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_afi_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8285 PyObject *resultobj = 0;
8290 unsigned short val2 ;
8292 PyObject * obj0 = 0 ;
8293 PyObject * obj1 = 0 ;
8295 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpCapabilityMpBgp_afi_set",&obj0,&obj1)) SWIG_fail;
8296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8297 if (!SWIG_IsOK(res1)) {
8298 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_afi_set" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp *""'");
8301 ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
8302 if (!SWIG_IsOK(ecode2)) {
8303 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapabilityMpBgp_afi_set" "', argument " "2"" of type '" "uint16_t""'");
8305 arg2 =
static_cast< uint16_t
>(val2);
8306 if (arg1) (arg1)->afi = arg2;
8307 resultobj = SWIG_Py_Void();
8314 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_afi_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8315 PyObject *resultobj = 0;
8319 PyObject * obj0 = 0 ;
8322 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpCapabilityMpBgp_afi_get",&obj0)) SWIG_fail;
8323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8324 if (!SWIG_IsOK(res1)) {
8325 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_afi_get" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp *""'");
8328 result = (uint16_t) ((arg1)->afi);
8329 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
8336 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_safi_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8337 PyObject *resultobj = 0;
8342 unsigned char val2 ;
8344 PyObject * obj0 = 0 ;
8345 PyObject * obj1 = 0 ;
8347 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpCapabilityMpBgp_safi_set",&obj0,&obj1)) SWIG_fail;
8348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8349 if (!SWIG_IsOK(res1)) {
8350 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_safi_set" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp *""'");
8353 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8354 if (!SWIG_IsOK(ecode2)) {
8355 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapabilityMpBgp_safi_set" "', argument " "2"" of type '" "uint8_t""'");
8357 arg2 =
static_cast< uint8_t
>(val2);
8358 if (arg1) (arg1)->safi = arg2;
8359 resultobj = SWIG_Py_Void();
8366 SWIGINTERN PyObject *_wrap_BgpCapabilityMpBgp_safi_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8367 PyObject *resultobj = 0;
8371 PyObject * obj0 = 0 ;
8374 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpCapabilityMpBgp_safi_get",&obj0)) SWIG_fail;
8375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityMpBgp_safi_get" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp *""'");
8380 result = (uint8_t) ((arg1)->safi);
8381 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
8388 SWIGINTERN PyObject *_wrap_delete_BgpCapabilityMpBgp(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8389 PyObject *resultobj = 0;
8393 PyObject * obj0 = 0 ;
8395 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpCapabilityMpBgp",&obj0)) SWIG_fail;
8396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, SWIG_POINTER_DISOWN | 0 );
8397 if (!SWIG_IsOK(res1)) {
8398 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpCapabilityMpBgp" "', argument " "1"" of type '" "libbgp::BgpCapabilityMpBgp *""'");
8402 resultobj = SWIG_Py_Void();
8409 SWIGINTERN PyObject *BgpCapabilityMpBgp_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8411 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
8412 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpCapabilityMpBgp, SWIG_NewClientData(obj));
8413 return SWIG_Py_Void();
8416 SWIGINTERN PyObject *_wrap_new_BgpCapabilityUnknow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8417 PyObject *resultobj = 0;
8421 PyObject * obj0 = 0 ;
8424 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpCapabilityUnknow",&obj0)) SWIG_fail;
8425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
8426 if (!SWIG_IsOK(res1)) {
8427 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpCapabilityUnknow" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
8431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpCapabilityUnknow, SWIG_POINTER_NEW | 0 );
8438 SWIGINTERN PyObject *_wrap_delete_BgpCapabilityUnknow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8439 PyObject *resultobj = 0;
8443 PyObject * obj0 = 0 ;
8445 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpCapabilityUnknow",&obj0)) SWIG_fail;
8446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityUnknow, SWIG_POINTER_DISOWN | 0 );
8447 if (!SWIG_IsOK(res1)) {
8448 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpCapabilityUnknow" "', argument " "1"" of type '" "libbgp::BgpCapabilityUnknow *""'");
8452 resultobj = SWIG_Py_Void();
8459 SWIGINTERN PyObject *_wrap_BgpCapabilityUnknow_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8460 PyObject *resultobj = 0;
8463 uint8_t **arg3 = (uint8_t **) 0 ;
8464 size_t *arg4 = (
size_t *) 0 ;
8473 PyObject * obj0 = 0 ;
8474 PyObject * obj1 = 0 ;
8475 PyObject * obj2 = 0 ;
8476 PyObject * obj3 = 0 ;
8479 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpCapabilityUnknow_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityUnknow, 0 | 0 );
8481 if (!SWIG_IsOK(res1)) {
8482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityUnknow_doPrint" "', argument " "1"" of type '" "libbgp::BgpCapabilityUnknow const *""'");
8485 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8486 if (!SWIG_IsOK(ecode2)) {
8487 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpCapabilityUnknow_doPrint" "', argument " "2"" of type '" "size_t""'");
8489 arg2 =
static_cast< size_t >(val2);
8490 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
8491 if (!SWIG_IsOK(res3)) {
8492 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpCapabilityUnknow_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
8494 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
8495 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
8496 if (!SWIG_IsOK(res4)) {
8497 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpCapabilityUnknow_doPrint" "', argument " "4"" of type '" "size_t *""'");
8499 arg4 =
reinterpret_cast< size_t *
>(argp4);
8501 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8508 SWIGINTERN PyObject *_wrap_BgpCapabilityUnknow_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8509 PyObject *resultobj = 0;
8511 uint8_t *arg2 = (uint8_t *) 0 ;
8519 PyObject * obj0 = 0 ;
8520 PyObject * obj1 = 0 ;
8521 PyObject * obj2 = 0 ;
8524 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapabilityUnknow_parse",&obj0,&obj1,&obj2)) SWIG_fail;
8525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityUnknow, 0 | 0 );
8526 if (!SWIG_IsOK(res1)) {
8527 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityUnknow_parse" "', argument " "1"" of type '" "libbgp::BgpCapabilityUnknow *""'");
8530 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8531 if (!SWIG_IsOK(res2)) {
8532 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapabilityUnknow_parse" "', argument " "2"" of type '" "uint8_t const *""'");
8534 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8535 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8536 if (!SWIG_IsOK(ecode3)) {
8537 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapabilityUnknow_parse" "', argument " "3"" of type '" "size_t""'");
8539 arg3 =
static_cast< size_t >(val3);
8540 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
8541 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8548 SWIGINTERN PyObject *_wrap_BgpCapabilityUnknow_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8549 PyObject *resultobj = 0;
8551 uint8_t *arg2 = (uint8_t *) 0 ;
8559 PyObject * obj0 = 0 ;
8560 PyObject * obj1 = 0 ;
8561 PyObject * obj2 = 0 ;
8564 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpCapabilityUnknow_write",&obj0,&obj1,&obj2)) SWIG_fail;
8565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpCapabilityUnknow, 0 | 0 );
8566 if (!SWIG_IsOK(res1)) {
8567 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpCapabilityUnknow_write" "', argument " "1"" of type '" "libbgp::BgpCapabilityUnknow const *""'");
8570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
8571 if (!SWIG_IsOK(res2)) {
8572 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpCapabilityUnknow_write" "', argument " "2"" of type '" "uint8_t *""'");
8574 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
8575 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8576 if (!SWIG_IsOK(ecode3)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpCapabilityUnknow_write" "', argument " "3"" of type '" "size_t""'");
8579 arg3 =
static_cast< size_t >(val3);
8581 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
8588 SWIGINTERN PyObject *BgpCapabilityUnknow_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8590 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
8591 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpCapabilityUnknow, SWIG_NewClientData(obj));
8592 return SWIG_Py_Void();
8595 SWIGINTERN PyObject *_wrap_BgpFilterRule_filter_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8596 PyObject *resultobj = 0;
8601 unsigned char val2 ;
8603 PyObject * obj0 = 0 ;
8604 PyObject * obj1 = 0 ;
8606 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRule_filter_type_set",&obj0,&obj1)) SWIG_fail;
8607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8608 if (!SWIG_IsOK(res1)) {
8609 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_filter_type_set" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8612 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8613 if (!SWIG_IsOK(ecode2)) {
8614 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpFilterRule_filter_type_set" "', argument " "2"" of type '" "uint8_t""'");
8616 arg2 =
static_cast< uint8_t
>(val2);
8617 if (arg1) (arg1)->filter_type = arg2;
8618 resultobj = SWIG_Py_Void();
8625 SWIGINTERN PyObject *_wrap_BgpFilterRule_filter_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8626 PyObject *resultobj = 0;
8630 PyObject * obj0 = 0 ;
8633 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFilterRule_filter_type_get",&obj0)) SWIG_fail;
8634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_filter_type_get" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8639 result = (uint8_t) ((arg1)->filter_type);
8640 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
8647 SWIGINTERN PyObject *_wrap_BgpFilterRule_match_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8648 PyObject *resultobj = 0;
8653 unsigned char val2 ;
8655 PyObject * obj0 = 0 ;
8656 PyObject * obj1 = 0 ;
8658 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRule_match_type_set",&obj0,&obj1)) SWIG_fail;
8659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_match_type_set" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8664 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8665 if (!SWIG_IsOK(ecode2)) {
8666 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpFilterRule_match_type_set" "', argument " "2"" of type '" "uint8_t""'");
8668 arg2 =
static_cast< uint8_t
>(val2);
8669 if (arg1) (arg1)->match_type = arg2;
8670 resultobj = SWIG_Py_Void();
8677 SWIGINTERN PyObject *_wrap_BgpFilterRule_match_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8678 PyObject *resultobj = 0;
8682 PyObject * obj0 = 0 ;
8685 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFilterRule_match_type_get",&obj0)) SWIG_fail;
8686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8687 if (!SWIG_IsOK(res1)) {
8688 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_match_type_get" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8691 result = (uint8_t) ((arg1)->match_type);
8692 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
8699 SWIGINTERN PyObject *_wrap_BgpFilterRule_op_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8700 PyObject *resultobj = 0;
8707 PyObject * obj0 = 0 ;
8708 PyObject * obj1 = 0 ;
8710 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRule_op_set",&obj0,&obj1)) SWIG_fail;
8711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8712 if (!SWIG_IsOK(res1)) {
8713 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_op_set" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8716 ecode2 = SWIG_AsVal_int(obj1, &val2);
8717 if (!SWIG_IsOK(ecode2)) {
8718 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpFilterRule_op_set" "', argument " "2"" of type '" "libbgp::BgpFilterOP""'");
8721 if (arg1) (arg1)->op = arg2;
8722 resultobj = SWIG_Py_Void();
8729 SWIGINTERN PyObject *_wrap_BgpFilterRule_op_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8730 PyObject *resultobj = 0;
8734 PyObject * obj0 = 0 ;
8737 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFilterRule_op_get",&obj0)) SWIG_fail;
8738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8739 if (!SWIG_IsOK(res1)) {
8740 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_op_get" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8744 resultobj = SWIG_From_int(static_cast< int >(result));
8751 SWIGINTERN PyObject *_wrap_BgpFilterRule_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8752 PyObject *resultobj = 0;
8755 std::vector< std::shared_ptr< BgpPathAttrib > > *arg3 = 0 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 PyObject * obj2 = 0 ;
8767 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpFilterRule_apply",&obj0,&obj1,&obj2)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRule_apply" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
8774 if (!SWIG_IsOK(res2)) {
8775 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRule_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
8778 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRule_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
8781 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
8782 if (!SWIG_IsOK(res3)) {
8783 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpFilterRule_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
8786 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRule_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
8788 arg3 =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp3);
8790 resultobj = SWIG_From_int(static_cast< int >(result));
8797 SWIGINTERN PyObject *_wrap_delete_BgpFilterRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8798 PyObject *resultobj = 0;
8802 PyObject * obj0 = 0 ;
8804 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFilterRule",&obj0)) SWIG_fail;
8805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRule, SWIG_POINTER_DISOWN | 0 );
8806 if (!SWIG_IsOK(res1)) {
8807 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFilterRule" "', argument " "1"" of type '" "libbgp::BgpFilterRule *""'");
8811 resultobj = SWIG_Py_Void();
8818 SWIGINTERN PyObject *BgpFilterRule_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8820 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
8821 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRule, SWIG_NewClientData(obj));
8822 return SWIG_Py_Void();
8825 SWIGINTERN PyObject *_wrap_new_Prefix4RouteFilterRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8826 PyObject *resultobj = 0;
8829 if (!PyArg_ParseTuple(args,(
char *)
":new_Prefix4RouteFilterRule")) SWIG_fail;
8831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, SWIG_POINTER_NEW | 0 );
8838 SWIGINTERN PyObject *_wrap_Prefix4RouteFilterRule_prefix_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8839 PyObject *resultobj = 0;
8846 PyObject * obj0 = 0 ;
8847 PyObject * obj1 = 0 ;
8849 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix4RouteFilterRule_prefix_set",&obj0,&obj1)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, 0 | 0 );
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4RouteFilterRule_prefix_set" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix4 > *""'");
8855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
8856 if (!SWIG_IsOK(res2)) {
8857 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4RouteFilterRule_prefix_set" "', argument " "2"" of type '" "libbgp::Prefix4 *""'");
8860 if (arg1) (arg1)->prefix = *arg2;
8861 resultobj = SWIG_Py_Void();
8868 SWIGINTERN PyObject *_wrap_Prefix4RouteFilterRule_prefix_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8869 PyObject *resultobj = 0;
8873 PyObject * obj0 = 0 ;
8876 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix4RouteFilterRule_prefix_get",&obj0)) SWIG_fail;
8877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, 0 | 0 );
8878 if (!SWIG_IsOK(res1)) {
8879 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4RouteFilterRule_prefix_get" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix4 > *""'");
8883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
8890 SWIGINTERN PyObject *_wrap_Prefix4RouteFilterRule_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8891 PyObject *resultobj = 0;
8894 std::vector< std::shared_ptr< BgpPathAttrib > > *arg3 = 0 ;
8901 PyObject * obj0 = 0 ;
8902 PyObject * obj1 = 0 ;
8903 PyObject * obj2 = 0 ;
8906 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix4RouteFilterRule_apply",&obj0,&obj1,&obj2)) SWIG_fail;
8907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, 0 | 0 );
8908 if (!SWIG_IsOK(res1)) {
8909 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix4RouteFilterRule_apply" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix4 > *""'");
8912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
8913 if (!SWIG_IsOK(res2)) {
8914 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix4RouteFilterRule_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
8917 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4RouteFilterRule_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
8920 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
8921 if (!SWIG_IsOK(res3)) {
8922 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Prefix4RouteFilterRule_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
8925 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix4RouteFilterRule_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
8927 arg3 =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp3);
8929 resultobj = SWIG_From_int(static_cast< int >(result));
8936 SWIGINTERN PyObject *_wrap_delete_Prefix4RouteFilterRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8937 PyObject *resultobj = 0;
8941 PyObject * obj0 = 0 ;
8943 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Prefix4RouteFilterRule",&obj0)) SWIG_fail;
8944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, SWIG_POINTER_DISOWN | 0 );
8945 if (!SWIG_IsOK(res1)) {
8946 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Prefix4RouteFilterRule" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix4 > *""'");
8950 resultobj = SWIG_Py_Void();
8957 SWIGINTERN PyObject *Prefix4RouteFilterRule_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8959 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
8960 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, SWIG_NewClientData(obj));
8961 return SWIG_Py_Void();
8964 SWIGINTERN PyObject *_wrap_new_Prefix6RouteFilterRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8965 PyObject *resultobj = 0;
8968 if (!PyArg_ParseTuple(args,(
char *)
":new_Prefix6RouteFilterRule")) SWIG_fail;
8970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, SWIG_POINTER_NEW | 0 );
8977 SWIGINTERN PyObject *_wrap_Prefix6RouteFilterRule_prefix_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
8978 PyObject *resultobj = 0;
8985 PyObject * obj0 = 0 ;
8986 PyObject * obj1 = 0 ;
8988 if (!PyArg_ParseTuple(args,(
char *)
"OO:Prefix6RouteFilterRule_prefix_set",&obj0,&obj1)) SWIG_fail;
8989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, 0 | 0 );
8990 if (!SWIG_IsOK(res1)) {
8991 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6RouteFilterRule_prefix_set" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix6 > *""'");
8994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
8995 if (!SWIG_IsOK(res2)) {
8996 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6RouteFilterRule_prefix_set" "', argument " "2"" of type '" "libbgp::Prefix6 *""'");
8999 if (arg1) (arg1)->prefix = *arg2;
9000 resultobj = SWIG_Py_Void();
9007 SWIGINTERN PyObject *_wrap_Prefix6RouteFilterRule_prefix_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9008 PyObject *resultobj = 0;
9012 PyObject * obj0 = 0 ;
9015 if (!PyArg_ParseTuple(args,(
char *)
"O:Prefix6RouteFilterRule_prefix_get",&obj0)) SWIG_fail;
9016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6RouteFilterRule_prefix_get" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix6 > *""'");
9022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
9029 SWIGINTERN PyObject *_wrap_Prefix6RouteFilterRule_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9030 PyObject *resultobj = 0;
9033 std::vector< std::shared_ptr< BgpPathAttrib > > *arg3 = 0 ;
9040 PyObject * obj0 = 0 ;
9041 PyObject * obj1 = 0 ;
9042 PyObject * obj2 = 0 ;
9045 if (!PyArg_ParseTuple(args,(
char *)
"OOO:Prefix6RouteFilterRule_apply",&obj0,&obj1,&obj2)) SWIG_fail;
9046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, 0 | 0 );
9047 if (!SWIG_IsOK(res1)) {
9048 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Prefix6RouteFilterRule_apply" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix6 > *""'");
9051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
9052 if (!SWIG_IsOK(res2)) {
9053 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Prefix6RouteFilterRule_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9056 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6RouteFilterRule_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9059 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
9060 if (!SWIG_IsOK(res3)) {
9061 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "Prefix6RouteFilterRule_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9064 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Prefix6RouteFilterRule_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9066 arg3 =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp3);
9068 resultobj = SWIG_From_int(static_cast< int >(result));
9075 SWIGINTERN PyObject *_wrap_delete_Prefix6RouteFilterRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9076 PyObject *resultobj = 0;
9080 PyObject * obj0 = 0 ;
9082 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Prefix6RouteFilterRule",&obj0)) SWIG_fail;
9083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, SWIG_POINTER_DISOWN | 0 );
9084 if (!SWIG_IsOK(res1)) {
9085 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Prefix6RouteFilterRule" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute< libbgp::Prefix6 > *""'");
9089 resultobj = SWIG_Py_Void();
9096 SWIGINTERN PyObject *Prefix6RouteFilterRule_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9098 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
9099 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, SWIG_NewClientData(obj));
9100 return SWIG_Py_Void();
9103 SWIGINTERN PyObject *_wrap_new_BgpFilterRuleRoute4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9104 PyObject *resultobj = 0;
9114 PyObject * obj0 = 0 ;
9115 PyObject * obj1 = 0 ;
9116 PyObject * obj2 = 0 ;
9119 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpFilterRuleRoute4",&obj0,&obj1,&obj2)) SWIG_fail;
9120 ecode1 = SWIG_AsVal_int(obj0, &val1);
9121 if (!SWIG_IsOK(ecode1)) {
9122 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpFilterRuleRoute4" "', argument " "1"" of type '" "libbgp::BgpFilterOP""'");
9125 ecode2 = SWIG_AsVal_int(obj1, &val2);
9126 if (!SWIG_IsOK(ecode2)) {
9127 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpFilterRuleRoute4" "', argument " "2"" of type '" "libbgp::BgpFilterRuleRouteMatchType""'");
9130 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
9131 if (!SWIG_IsOK(res3)) {
9132 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_BgpFilterRuleRoute4" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
9135 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpFilterRuleRoute4" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
9139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleRoute4, SWIG_POINTER_NEW | 0 );
9146 SWIGINTERN PyObject *_wrap_delete_BgpFilterRuleRoute4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9147 PyObject *resultobj = 0;
9151 PyObject * obj0 = 0 ;
9153 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFilterRuleRoute4",&obj0)) SWIG_fail;
9154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRoute4, SWIG_POINTER_DISOWN | 0 );
9155 if (!SWIG_IsOK(res1)) {
9156 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFilterRuleRoute4" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute4 *""'");
9160 resultobj = SWIG_Py_Void();
9167 SWIGINTERN PyObject *BgpFilterRuleRoute4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9169 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
9170 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRuleRoute4, SWIG_NewClientData(obj));
9171 return SWIG_Py_Void();
9174 SWIGINTERN PyObject *_wrap_new_BgpFilterRuleRoute6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9175 PyObject *resultobj = 0;
9185 PyObject * obj0 = 0 ;
9186 PyObject * obj1 = 0 ;
9187 PyObject * obj2 = 0 ;
9190 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpFilterRuleRoute6",&obj0,&obj1,&obj2)) SWIG_fail;
9191 ecode1 = SWIG_AsVal_int(obj0, &val1);
9192 if (!SWIG_IsOK(ecode1)) {
9193 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpFilterRuleRoute6" "', argument " "1"" of type '" "libbgp::BgpFilterOP""'");
9196 ecode2 = SWIG_AsVal_int(obj1, &val2);
9197 if (!SWIG_IsOK(ecode2)) {
9198 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpFilterRuleRoute6" "', argument " "2"" of type '" "libbgp::BgpFilterRuleRouteMatchType""'");
9201 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
9202 if (!SWIG_IsOK(res3)) {
9203 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_BgpFilterRuleRoute6" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
9206 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpFilterRuleRoute6" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
9210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleRoute6, SWIG_POINTER_NEW | 0 );
9217 SWIGINTERN PyObject *_wrap_delete_BgpFilterRuleRoute6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9218 PyObject *resultobj = 0;
9222 PyObject * obj0 = 0 ;
9224 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFilterRuleRoute6",&obj0)) SWIG_fail;
9225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleRoute6, SWIG_POINTER_DISOWN | 0 );
9226 if (!SWIG_IsOK(res1)) {
9227 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFilterRuleRoute6" "', argument " "1"" of type '" "libbgp::BgpFilterRuleRoute6 *""'");
9231 resultobj = SWIG_Py_Void();
9238 SWIGINTERN PyObject *BgpFilterRuleRoute6_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9240 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
9241 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRuleRoute6, SWIG_NewClientData(obj));
9242 return SWIG_Py_Void();
9245 SWIGINTERN PyObject *_wrap_new_BgpFilterRuleAsPath(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9246 PyObject *resultobj = 0;
9256 PyObject * obj0 = 0 ;
9257 PyObject * obj1 = 0 ;
9258 PyObject * obj2 = 0 ;
9261 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpFilterRuleAsPath",&obj0,&obj1,&obj2)) SWIG_fail;
9262 ecode1 = SWIG_AsVal_int(obj0, &val1);
9263 if (!SWIG_IsOK(ecode1)) {
9264 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpFilterRuleAsPath" "', argument " "1"" of type '" "libbgp::BgpFilterOP""'");
9267 ecode2 = SWIG_AsVal_int(obj1, &val2);
9268 if (!SWIG_IsOK(ecode2)) {
9269 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpFilterRuleAsPath" "', argument " "2"" of type '" "libbgp::BgpFilterRuleAsPathMatchType""'");
9272 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9273 if (!SWIG_IsOK(ecode3)) {
9274 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpFilterRuleAsPath" "', argument " "3"" of type '" "uint32_t""'");
9276 arg3 =
static_cast< uint32_t
>(val3);
9278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleAsPath, SWIG_POINTER_NEW | 0 );
9285 SWIGINTERN PyObject *_wrap_BgpFilterRuleAsPath_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9286 PyObject *resultobj = 0;
9293 PyObject * obj0 = 0 ;
9294 PyObject * obj1 = 0 ;
9296 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRuleAsPath_asn_set",&obj0,&obj1)) SWIG_fail;
9297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleAsPath, 0 | 0 );
9298 if (!SWIG_IsOK(res1)) {
9299 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRuleAsPath_asn_set" "', argument " "1"" of type '" "libbgp::BgpFilterRuleAsPath *""'");
9302 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
9303 if (!SWIG_IsOK(ecode2)) {
9304 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpFilterRuleAsPath_asn_set" "', argument " "2"" of type '" "uint32_t""'");
9306 arg2 =
static_cast< uint32_t
>(val2);
9307 if (arg1) (arg1)->asn = arg2;
9308 resultobj = SWIG_Py_Void();
9315 SWIGINTERN PyObject *_wrap_BgpFilterRuleAsPath_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9316 PyObject *resultobj = 0;
9320 PyObject * obj0 = 0 ;
9323 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFilterRuleAsPath_asn_get",&obj0)) SWIG_fail;
9324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleAsPath, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRuleAsPath_asn_get" "', argument " "1"" of type '" "libbgp::BgpFilterRuleAsPath *""'");
9329 result = (uint32_t) ((arg1)->asn);
9330 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
9337 SWIGINTERN PyObject *_wrap_BgpFilterRuleAsPath_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9338 PyObject *resultobj = 0;
9341 std::vector< std::shared_ptr< BgpPathAttrib > > *arg3 = 0 ;
9348 PyObject * obj0 = 0 ;
9349 PyObject * obj1 = 0 ;
9350 PyObject * obj2 = 0 ;
9353 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpFilterRuleAsPath_apply",&obj0,&obj1,&obj2)) SWIG_fail;
9354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleAsPath, 0 | 0 );
9355 if (!SWIG_IsOK(res1)) {
9356 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRuleAsPath_apply" "', argument " "1"" of type '" "libbgp::BgpFilterRuleAsPath *""'");
9359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
9360 if (!SWIG_IsOK(res2)) {
9361 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRuleAsPath_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9364 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRuleAsPath_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9367 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
9368 if (!SWIG_IsOK(res3)) {
9369 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpFilterRuleAsPath_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9372 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRuleAsPath_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9374 arg3 =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp3);
9376 resultobj = SWIG_From_int(static_cast< int >(result));
9383 SWIGINTERN PyObject *_wrap_delete_BgpFilterRuleAsPath(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9384 PyObject *resultobj = 0;
9388 PyObject * obj0 = 0 ;
9390 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFilterRuleAsPath",&obj0)) SWIG_fail;
9391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleAsPath, SWIG_POINTER_DISOWN | 0 );
9392 if (!SWIG_IsOK(res1)) {
9393 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFilterRuleAsPath" "', argument " "1"" of type '" "libbgp::BgpFilterRuleAsPath *""'");
9397 resultobj = SWIG_Py_Void();
9404 SWIGINTERN PyObject *BgpFilterRuleAsPath_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9406 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
9407 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRuleAsPath, SWIG_NewClientData(obj));
9408 return SWIG_Py_Void();
9411 SWIGINTERN PyObject *_wrap_new_BgpFilterRuleCommunity__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9412 PyObject *resultobj = 0;
9421 unsigned short val3 ;
9423 unsigned short val4 ;
9425 PyObject * obj0 = 0 ;
9426 PyObject * obj1 = 0 ;
9427 PyObject * obj2 = 0 ;
9428 PyObject * obj3 = 0 ;
9431 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:new_BgpFilterRuleCommunity",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9432 ecode1 = SWIG_AsVal_int(obj0, &val1);
9433 if (!SWIG_IsOK(ecode1)) {
9434 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "1"" of type '" "libbgp::BgpFilterOP""'");
9437 ecode2 = SWIG_AsVal_int(obj1, &val2);
9438 if (!SWIG_IsOK(ecode2)) {
9439 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "2"" of type '" "libbgp::BgpFilterRuleCommunityMatchType""'");
9442 ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3);
9443 if (!SWIG_IsOK(ecode3)) {
9444 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "3"" of type '" "uint16_t""'");
9446 arg3 =
static_cast< uint16_t
>(val3);
9447 ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4);
9448 if (!SWIG_IsOK(ecode4)) {
9449 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "4"" of type '" "uint16_t""'");
9451 arg4 =
static_cast< uint16_t
>(val4);
9453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, SWIG_POINTER_NEW | 0 );
9460 SWIGINTERN PyObject *_wrap_new_BgpFilterRuleCommunity__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9461 PyObject *resultobj = 0;
9471 PyObject * obj0 = 0 ;
9472 PyObject * obj1 = 0 ;
9473 PyObject * obj2 = 0 ;
9476 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpFilterRuleCommunity",&obj0,&obj1,&obj2)) SWIG_fail;
9477 ecode1 = SWIG_AsVal_int(obj0, &val1);
9478 if (!SWIG_IsOK(ecode1)) {
9479 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "1"" of type '" "libbgp::BgpFilterOP""'");
9482 ecode2 = SWIG_AsVal_int(obj1, &val2);
9483 if (!SWIG_IsOK(ecode2)) {
9484 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "2"" of type '" "libbgp::BgpFilterRuleCommunityMatchType""'");
9487 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9488 if (!SWIG_IsOK(ecode3)) {
9489 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpFilterRuleCommunity" "', argument " "3"" of type '" "uint32_t""'");
9491 arg3 =
static_cast< uint32_t
>(val3);
9493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, SWIG_POINTER_NEW | 0 );
9500 SWIGINTERN PyObject *_wrap_new_BgpFilterRuleCommunity(PyObject *
self, PyObject *args) {
9502 PyObject *argv[5] = {
9507 if (!PyTuple_Check(args)) SWIG_fail;
9508 argc = args ? PyObject_Length(args) : 0;
9509 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
9510 argv[ii] = PyTuple_GET_ITEM(args,ii);
9515 int res = SWIG_AsVal_int(argv[0], NULL);
9516 _v = SWIG_CheckState(res);
9520 int res = SWIG_AsVal_int(argv[1], NULL);
9521 _v = SWIG_CheckState(res);
9525 int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
9526 _v = SWIG_CheckState(res);
9529 return _wrap_new_BgpFilterRuleCommunity__SWIG_1(
self, args);
9537 int res = SWIG_AsVal_int(argv[0], NULL);
9538 _v = SWIG_CheckState(res);
9542 int res = SWIG_AsVal_int(argv[1], NULL);
9543 _v = SWIG_CheckState(res);
9547 int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
9548 _v = SWIG_CheckState(res);
9552 int res = SWIG_AsVal_unsigned_SS_short(argv[3], NULL);
9553 _v = SWIG_CheckState(res);
9556 return _wrap_new_BgpFilterRuleCommunity__SWIG_0(
self, args);
9564 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpFilterRuleCommunity'.\n" 9565 " Possible C/C++ prototypes are:\n" 9566 " libbgp::BgpFilterRuleCommunity::BgpFilterRuleCommunity(libbgp::BgpFilterOP,libbgp::BgpFilterRuleCommunityMatchType,uint16_t,uint16_t)\n" 9567 " libbgp::BgpFilterRuleCommunity::BgpFilterRuleCommunity(libbgp::BgpFilterOP,libbgp::BgpFilterRuleCommunityMatchType,uint32_t)\n");
9572 SWIGINTERN PyObject *_wrap_BgpFilterRuleCommunity_community_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9573 PyObject *resultobj = 0;
9580 PyObject * obj0 = 0 ;
9581 PyObject * obj1 = 0 ;
9583 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRuleCommunity_community_set",&obj0,&obj1)) SWIG_fail;
9584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, 0 | 0 );
9585 if (!SWIG_IsOK(res1)) {
9586 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRuleCommunity_community_set" "', argument " "1"" of type '" "libbgp::BgpFilterRuleCommunity *""'");
9589 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
9590 if (!SWIG_IsOK(ecode2)) {
9591 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpFilterRuleCommunity_community_set" "', argument " "2"" of type '" "uint32_t""'");
9593 arg2 =
static_cast< uint32_t
>(val2);
9594 if (arg1) (arg1)->community = arg2;
9595 resultobj = SWIG_Py_Void();
9602 SWIGINTERN PyObject *_wrap_BgpFilterRuleCommunity_community_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9603 PyObject *resultobj = 0;
9607 PyObject * obj0 = 0 ;
9610 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFilterRuleCommunity_community_get",&obj0)) SWIG_fail;
9611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, 0 | 0 );
9612 if (!SWIG_IsOK(res1)) {
9613 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRuleCommunity_community_get" "', argument " "1"" of type '" "libbgp::BgpFilterRuleCommunity *""'");
9616 result = (uint32_t) ((arg1)->community);
9617 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
9624 SWIGINTERN PyObject *_wrap_BgpFilterRuleCommunity_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9625 PyObject *resultobj = 0;
9628 std::vector< std::shared_ptr< BgpPathAttrib > > *arg3 = 0 ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 PyObject * obj2 = 0 ;
9640 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpFilterRuleCommunity_apply",&obj0,&obj1,&obj2)) SWIG_fail;
9641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, 0 | 0 );
9642 if (!SWIG_IsOK(res1)) {
9643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRuleCommunity_apply" "', argument " "1"" of type '" "libbgp::BgpFilterRuleCommunity *""'");
9646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
9647 if (!SWIG_IsOK(res2)) {
9648 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRuleCommunity_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9651 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRuleCommunity_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9654 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
9655 if (!SWIG_IsOK(res3)) {
9656 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpFilterRuleCommunity_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9659 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRuleCommunity_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9661 arg3 =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp3);
9663 resultobj = SWIG_From_int(static_cast< int >(result));
9670 SWIGINTERN PyObject *_wrap_delete_BgpFilterRuleCommunity(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9671 PyObject *resultobj = 0;
9675 PyObject * obj0 = 0 ;
9677 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFilterRuleCommunity",&obj0)) SWIG_fail;
9678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, SWIG_POINTER_DISOWN | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFilterRuleCommunity" "', argument " "1"" of type '" "libbgp::BgpFilterRuleCommunity *""'");
9684 resultobj = SWIG_Py_Void();
9691 SWIGINTERN PyObject *BgpFilterRuleCommunity_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9693 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
9694 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRuleCommunity, SWIG_NewClientData(obj));
9695 return SWIG_Py_Void();
9698 SWIGINTERN PyObject *_wrap_new_BgpFilterRules__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9699 PyObject *resultobj = 0;
9702 if (!PyArg_ParseTuple(args,(
char *)
":new_BgpFilterRules")) SWIG_fail;
9704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRules, SWIG_POINTER_NEW | 0 );
9711 SWIGINTERN PyObject *_wrap_new_BgpFilterRules__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9712 PyObject *resultobj = 0;
9716 PyObject * obj0 = 0 ;
9719 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpFilterRules",&obj0)) SWIG_fail;
9720 ecode1 = SWIG_AsVal_int(obj0, &val1);
9721 if (!SWIG_IsOK(ecode1)) {
9722 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpFilterRules" "', argument " "1"" of type '" "libbgp::BgpFilterOP""'");
9726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRules, SWIG_POINTER_NEW | 0 );
9733 SWIGINTERN PyObject *_wrap_new_BgpFilterRules(PyObject *
self, PyObject *args) {
9735 PyObject *argv[2] = {
9740 if (!PyTuple_Check(args)) SWIG_fail;
9741 argc = args ? PyObject_Length(args) : 0;
9742 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
9743 argv[ii] = PyTuple_GET_ITEM(args,ii);
9746 return _wrap_new_BgpFilterRules__SWIG_0(
self, args);
9751 int res = SWIG_AsVal_int(argv[0], NULL);
9752 _v = SWIG_CheckState(res);
9755 return _wrap_new_BgpFilterRules__SWIG_1(
self, args);
9760 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpFilterRules'.\n" 9761 " Possible C/C++ prototypes are:\n" 9762 " libbgp::BgpFilterRules::BgpFilterRules()\n" 9763 " libbgp::BgpFilterRules::BgpFilterRules(libbgp::BgpFilterOP)\n");
9768 SWIGINTERN PyObject *_wrap_BgpFilterRules_appendAsPathRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9769 PyObject *resultobj = 0;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9779 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRules_appendAsPathRule",&obj0,&obj1)) SWIG_fail;
9780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
9781 if (!SWIG_IsOK(res1)) {
9782 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRules_appendAsPathRule" "', argument " "1"" of type '" "libbgp::BgpFilterRules *""'");
9785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0);
9786 if (!SWIG_IsOK(res2)) {
9787 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRules_appendAsPathRule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9790 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRules_appendAsPathRule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9793 (arg1)->SWIGTEMPLATEDISAMBIGUATOR append< libbgp::BgpFilterRuleAsPath >((
libbgp::BgpFilterRule const &)*arg2);
9794 resultobj = SWIG_Py_Void();
9801 SWIGINTERN PyObject *_wrap_BgpFilterRules_appendCommunityRule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9802 PyObject *resultobj = 0;
9809 PyObject * obj0 = 0 ;
9810 PyObject * obj1 = 0 ;
9812 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRules_appendCommunityRule",&obj0,&obj1)) SWIG_fail;
9813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRules_appendCommunityRule" "', argument " "1"" of type '" "libbgp::BgpFilterRules *""'");
9818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0);
9819 if (!SWIG_IsOK(res2)) {
9820 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRules_appendCommunityRule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9823 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRules_appendCommunityRule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9826 (arg1)->SWIGTEMPLATEDISAMBIGUATOR append< libbgp::BgpFilterRuleCommunity >((
libbgp::BgpFilterRule const &)*arg2);
9827 resultobj = SWIG_Py_Void();
9834 SWIGINTERN PyObject *_wrap_BgpFilterRules_appendRoute4Rule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9835 PyObject *resultobj = 0;
9842 PyObject * obj0 = 0 ;
9843 PyObject * obj1 = 0 ;
9845 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRules_appendRoute4Rule",&obj0,&obj1)) SWIG_fail;
9846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
9847 if (!SWIG_IsOK(res1)) {
9848 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRules_appendRoute4Rule" "', argument " "1"" of type '" "libbgp::BgpFilterRules *""'");
9851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0);
9852 if (!SWIG_IsOK(res2)) {
9853 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRules_appendRoute4Rule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9856 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRules_appendRoute4Rule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9859 (arg1)->SWIGTEMPLATEDISAMBIGUATOR append< libbgp::BgpFilterRuleRoute4 >((
libbgp::BgpFilterRule const &)*arg2);
9860 resultobj = SWIG_Py_Void();
9867 SWIGINTERN PyObject *_wrap_BgpFilterRules_appendRoute6Rule(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9868 PyObject *resultobj = 0;
9875 PyObject * obj0 = 0 ;
9876 PyObject * obj1 = 0 ;
9878 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpFilterRules_appendRoute6Rule",&obj0,&obj1)) SWIG_fail;
9879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
9880 if (!SWIG_IsOK(res1)) {
9881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRules_appendRoute6Rule" "', argument " "1"" of type '" "libbgp::BgpFilterRules *""'");
9884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpFilterRule, 0 | 0);
9885 if (!SWIG_IsOK(res2)) {
9886 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRules_appendRoute6Rule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9889 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRules_appendRoute6Rule" "', argument " "2"" of type '" "libbgp::BgpFilterRule const &""'");
9892 (arg1)->SWIGTEMPLATEDISAMBIGUATOR append< libbgp::BgpFilterRuleRoute6 >((
libbgp::BgpFilterRule const &)*arg2);
9893 resultobj = SWIG_Py_Void();
9900 SWIGINTERN PyObject *_wrap_BgpFilterRules_apply(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9901 PyObject *resultobj = 0;
9904 std::vector< std::shared_ptr< BgpPathAttrib > > *arg3 = 0 ;
9911 PyObject * obj0 = 0 ;
9912 PyObject * obj1 = 0 ;
9913 PyObject * obj2 = 0 ;
9916 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpFilterRules_apply",&obj0,&obj1,&obj2)) SWIG_fail;
9917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
9918 if (!SWIG_IsOK(res1)) {
9919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFilterRules_apply" "', argument " "1"" of type '" "libbgp::BgpFilterRules *""'");
9922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix, 0 | 0);
9923 if (!SWIG_IsOK(res2)) {
9924 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFilterRules_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9927 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRules_apply" "', argument " "2"" of type '" "libbgp::Prefix const &""'");
9930 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0 | 0);
9931 if (!SWIG_IsOK(res3)) {
9932 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpFilterRules_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9935 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpFilterRules_apply" "', argument " "3"" of type '" "std::vector< std::shared_ptr< BgpPathAttrib > > const &""'");
9937 arg3 =
reinterpret_cast< std::vector< std::shared_ptr< BgpPathAttrib >
> * >(argp3);
9939 resultobj = SWIG_From_int(static_cast< int >(result));
9946 SWIGINTERN PyObject *_wrap_delete_BgpFilterRules(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9947 PyObject *resultobj = 0;
9951 PyObject * obj0 = 0 ;
9953 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFilterRules",&obj0)) SWIG_fail;
9954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFilterRules, SWIG_POINTER_DISOWN | 0 );
9955 if (!SWIG_IsOK(res1)) {
9956 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFilterRules" "', argument " "1"" of type '" "libbgp::BgpFilterRules *""'");
9960 resultobj = SWIG_Py_Void();
9967 SWIGINTERN PyObject *BgpFilterRules_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9969 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
9970 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFilterRules, SWIG_NewClientData(obj));
9971 return SWIG_Py_Void();
9974 SWIGINTERN PyObject *_wrap_new_BgpConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9975 PyObject *resultobj = 0;
9978 if (!PyArg_ParseTuple(args,(
char *)
":new_BgpConfig")) SWIG_fail;
9980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpConfig, SWIG_POINTER_NEW | 0 );
9987 SWIGINTERN PyObject *_wrap_BgpConfig_in_filters4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
9988 PyObject *resultobj = 0;
9995 PyObject * obj0 = 0 ;
9996 PyObject * obj1 = 0 ;
9998 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_in_filters4_set",&obj0,&obj1)) SWIG_fail;
9999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10000 if (!SWIG_IsOK(res1)) {
10001 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_in_filters4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10004 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10005 if (!SWIG_IsOK(res2)) {
10006 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_in_filters4_set" "', argument " "2"" of type '" "libbgp::BgpFilterRules *""'");
10009 if (arg1) (arg1)->in_filters4 = *arg2;
10010 resultobj = SWIG_Py_Void();
10017 SWIGINTERN PyObject *_wrap_BgpConfig_in_filters4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10018 PyObject *resultobj = 0;
10022 PyObject * obj0 = 0 ;
10025 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_in_filters4_get",&obj0)) SWIG_fail;
10026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10027 if (!SWIG_IsOK(res1)) {
10028 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_in_filters4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10039 SWIGINTERN PyObject *_wrap_BgpConfig_out_filters4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10040 PyObject *resultobj = 0;
10047 PyObject * obj0 = 0 ;
10048 PyObject * obj1 = 0 ;
10050 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_out_filters4_set",&obj0,&obj1)) SWIG_fail;
10051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10052 if (!SWIG_IsOK(res1)) {
10053 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_out_filters4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10057 if (!SWIG_IsOK(res2)) {
10058 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_out_filters4_set" "', argument " "2"" of type '" "libbgp::BgpFilterRules *""'");
10061 if (arg1) (arg1)->out_filters4 = *arg2;
10062 resultobj = SWIG_Py_Void();
10069 SWIGINTERN PyObject *_wrap_BgpConfig_out_filters4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10070 PyObject *resultobj = 0;
10074 PyObject * obj0 = 0 ;
10077 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_out_filters4_get",&obj0)) SWIG_fail;
10078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10079 if (!SWIG_IsOK(res1)) {
10080 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_out_filters4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10091 SWIGINTERN PyObject *_wrap_BgpConfig_in_filters6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10092 PyObject *resultobj = 0;
10099 PyObject * obj0 = 0 ;
10100 PyObject * obj1 = 0 ;
10102 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_in_filters6_set",&obj0,&obj1)) SWIG_fail;
10103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10104 if (!SWIG_IsOK(res1)) {
10105 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_in_filters6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10109 if (!SWIG_IsOK(res2)) {
10110 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_in_filters6_set" "', argument " "2"" of type '" "libbgp::BgpFilterRules *""'");
10113 if (arg1) (arg1)->in_filters6 = *arg2;
10114 resultobj = SWIG_Py_Void();
10121 SWIGINTERN PyObject *_wrap_BgpConfig_in_filters6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10122 PyObject *resultobj = 0;
10126 PyObject * obj0 = 0 ;
10129 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_in_filters6_get",&obj0)) SWIG_fail;
10130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10131 if (!SWIG_IsOK(res1)) {
10132 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_in_filters6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10143 SWIGINTERN PyObject *_wrap_BgpConfig_out_filters6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10144 PyObject *resultobj = 0;
10151 PyObject * obj0 = 0 ;
10152 PyObject * obj1 = 0 ;
10154 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_out_filters6_set",&obj0,&obj1)) SWIG_fail;
10155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10156 if (!SWIG_IsOK(res1)) {
10157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_out_filters6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10161 if (!SWIG_IsOK(res2)) {
10162 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_out_filters6_set" "', argument " "2"" of type '" "libbgp::BgpFilterRules *""'");
10165 if (arg1) (arg1)->out_filters6 = *arg2;
10166 resultobj = SWIG_Py_Void();
10173 SWIGINTERN PyObject *_wrap_BgpConfig_out_filters6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10174 PyObject *resultobj = 0;
10178 PyObject * obj0 = 0 ;
10181 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_out_filters6_get",&obj0)) SWIG_fail;
10182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10183 if (!SWIG_IsOK(res1)) {
10184 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_out_filters6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFilterRules, 0 | 0 );
10195 SWIGINTERN PyObject *_wrap_BgpConfig_out_handler_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10196 PyObject *resultobj = 0;
10203 PyObject * obj0 = 0 ;
10204 PyObject * obj1 = 0 ;
10206 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_out_handler_set",&obj0,&obj1)) SWIG_fail;
10207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10208 if (!SWIG_IsOK(res1)) {
10209 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_out_handler_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10212 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BgpOutHandler, SWIG_POINTER_DISOWN | 0 );
10213 if (!SWIG_IsOK(res2)) {
10214 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_out_handler_set" "', argument " "2"" of type '" "BgpOutHandler *""'");
10217 if (arg1) (arg1)->out_handler = arg2;
10218 resultobj = SWIG_Py_Void();
10225 SWIGINTERN PyObject *_wrap_BgpConfig_out_handler_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10226 PyObject *resultobj = 0;
10230 PyObject * obj0 = 0 ;
10233 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_out_handler_get",&obj0)) SWIG_fail;
10234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10235 if (!SWIG_IsOK(res1)) {
10236 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_out_handler_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BgpOutHandler, 0 | 0 );
10247 SWIGINTERN PyObject *_wrap_BgpConfig_log_handler_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10248 PyObject *resultobj = 0;
10255 PyObject * obj0 = 0 ;
10256 PyObject * obj1 = 0 ;
10258 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_log_handler_set",&obj0,&obj1)) SWIG_fail;
10259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10260 if (!SWIG_IsOK(res1)) {
10261 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_log_handler_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, SWIG_POINTER_DISOWN | 0 );
10265 if (!SWIG_IsOK(res2)) {
10266 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_log_handler_set" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
10269 if (arg1) (arg1)->log_handler = arg2;
10270 resultobj = SWIG_Py_Void();
10277 SWIGINTERN PyObject *_wrap_BgpConfig_log_handler_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10278 PyObject *resultobj = 0;
10282 PyObject * obj0 = 0 ;
10285 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_log_handler_get",&obj0)) SWIG_fail;
10286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10287 if (!SWIG_IsOK(res1)) {
10288 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_log_handler_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
10299 SWIGINTERN PyObject *_wrap_BgpConfig_rib4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10300 PyObject *resultobj = 0;
10307 PyObject * obj0 = 0 ;
10308 PyObject * obj1 = 0 ;
10310 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_rib4_set",&obj0,&obj1)) SWIG_fail;
10311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10312 if (!SWIG_IsOK(res1)) {
10313 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_rib4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10316 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BgpRib4, SWIG_POINTER_DISOWN | 0 );
10317 if (!SWIG_IsOK(res2)) {
10318 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_rib4_set" "', argument " "2"" of type '" "BgpRib4 *""'");
10320 arg2 =
reinterpret_cast< BgpRib4 *
>(argp2);
10321 if (arg1) (arg1)->rib4 = arg2;
10322 resultobj = SWIG_Py_Void();
10329 SWIGINTERN PyObject *_wrap_BgpConfig_rib4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10330 PyObject *resultobj = 0;
10334 PyObject * obj0 = 0 ;
10337 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_rib4_get",&obj0)) SWIG_fail;
10338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_rib4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10343 result = (
BgpRib4 *) ((arg1)->rib4);
10344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BgpRib4, 0 | 0 );
10351 SWIGINTERN PyObject *_wrap_BgpConfig_rib6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10352 PyObject *resultobj = 0;
10359 PyObject * obj0 = 0 ;
10360 PyObject * obj1 = 0 ;
10362 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_rib6_set",&obj0,&obj1)) SWIG_fail;
10363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10364 if (!SWIG_IsOK(res1)) {
10365 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_rib6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BgpRib6, SWIG_POINTER_DISOWN | 0 );
10369 if (!SWIG_IsOK(res2)) {
10370 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_rib6_set" "', argument " "2"" of type '" "BgpRib6 *""'");
10372 arg2 =
reinterpret_cast< BgpRib6 *
>(argp2);
10373 if (arg1) (arg1)->rib6 = arg2;
10374 resultobj = SWIG_Py_Void();
10381 SWIGINTERN PyObject *_wrap_BgpConfig_rib6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10382 PyObject *resultobj = 0;
10386 PyObject * obj0 = 0 ;
10389 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_rib6_get",&obj0)) SWIG_fail;
10390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10391 if (!SWIG_IsOK(res1)) {
10392 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_rib6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10395 result = (
BgpRib6 *) ((arg1)->rib6);
10396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BgpRib6, 0 | 0 );
10403 SWIGINTERN PyObject *_wrap_BgpConfig_rev_bus_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10404 PyObject *resultobj = 0;
10411 PyObject * obj0 = 0 ;
10412 PyObject * obj1 = 0 ;
10414 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_rev_bus_set",&obj0,&obj1)) SWIG_fail;
10415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10416 if (!SWIG_IsOK(res1)) {
10417 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_rev_bus_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__RouteEventBus, SWIG_POINTER_DISOWN | 0 );
10421 if (!SWIG_IsOK(res2)) {
10422 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_rev_bus_set" "', argument " "2"" of type '" "libbgp::RouteEventBus *""'");
10425 if (arg1) (arg1)->rev_bus = arg2;
10426 resultobj = SWIG_Py_Void();
10433 SWIGINTERN PyObject *_wrap_BgpConfig_rev_bus_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10434 PyObject *resultobj = 0;
10438 PyObject * obj0 = 0 ;
10441 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_rev_bus_get",&obj0)) SWIG_fail;
10442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10443 if (!SWIG_IsOK(res1)) {
10444 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_rev_bus_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
10455 SWIGINTERN PyObject *_wrap_BgpConfig_no_collision_detection_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10456 PyObject *resultobj = 0;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10466 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_no_collision_detection_set",&obj0,&obj1)) SWIG_fail;
10467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10468 if (!SWIG_IsOK(res1)) {
10469 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_collision_detection_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10472 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10473 if (!SWIG_IsOK(ecode2)) {
10474 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_no_collision_detection_set" "', argument " "2"" of type '" "bool""'");
10476 arg2 =
static_cast< bool >(val2);
10477 if (arg1) (arg1)->no_collision_detection = arg2;
10478 resultobj = SWIG_Py_Void();
10485 SWIGINTERN PyObject *_wrap_BgpConfig_no_collision_detection_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10486 PyObject *resultobj = 0;
10490 PyObject * obj0 = 0 ;
10493 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_no_collision_detection_get",&obj0)) SWIG_fail;
10494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10495 if (!SWIG_IsOK(res1)) {
10496 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_collision_detection_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10499 result = (bool) ((arg1)->no_collision_detection);
10500 resultobj = SWIG_From_bool(static_cast< bool >(result));
10507 SWIGINTERN PyObject *_wrap_BgpConfig_use_4b_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10508 PyObject *resultobj = 0;
10515 PyObject * obj0 = 0 ;
10516 PyObject * obj1 = 0 ;
10518 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_use_4b_asn_set",&obj0,&obj1)) SWIG_fail;
10519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10520 if (!SWIG_IsOK(res1)) {
10521 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_use_4b_asn_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10524 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10525 if (!SWIG_IsOK(ecode2)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_use_4b_asn_set" "', argument " "2"" of type '" "bool""'");
10528 arg2 =
static_cast< bool >(val2);
10529 if (arg1) (arg1)->use_4b_asn = arg2;
10530 resultobj = SWIG_Py_Void();
10537 SWIGINTERN PyObject *_wrap_BgpConfig_use_4b_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10538 PyObject *resultobj = 0;
10542 PyObject * obj0 = 0 ;
10545 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_use_4b_asn_get",&obj0)) SWIG_fail;
10546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10547 if (!SWIG_IsOK(res1)) {
10548 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_use_4b_asn_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10551 result = (bool) ((arg1)->use_4b_asn);
10552 resultobj = SWIG_From_bool(static_cast< bool >(result));
10559 SWIGINTERN PyObject *_wrap_BgpConfig_mp_bgp_ipv4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10560 PyObject *resultobj = 0;
10567 PyObject * obj0 = 0 ;
10568 PyObject * obj1 = 0 ;
10570 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_mp_bgp_ipv4_set",&obj0,&obj1)) SWIG_fail;
10571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10572 if (!SWIG_IsOK(res1)) {
10573 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_mp_bgp_ipv4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10576 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10577 if (!SWIG_IsOK(ecode2)) {
10578 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_mp_bgp_ipv4_set" "', argument " "2"" of type '" "bool""'");
10580 arg2 =
static_cast< bool >(val2);
10581 if (arg1) (arg1)->mp_bgp_ipv4 = arg2;
10582 resultobj = SWIG_Py_Void();
10589 SWIGINTERN PyObject *_wrap_BgpConfig_mp_bgp_ipv4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10590 PyObject *resultobj = 0;
10594 PyObject * obj0 = 0 ;
10597 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_mp_bgp_ipv4_get",&obj0)) SWIG_fail;
10598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10599 if (!SWIG_IsOK(res1)) {
10600 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_mp_bgp_ipv4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10603 result = (bool) ((arg1)->mp_bgp_ipv4);
10604 resultobj = SWIG_From_bool(static_cast< bool >(result));
10611 SWIGINTERN PyObject *_wrap_BgpConfig_mp_bgp_ipv6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10612 PyObject *resultobj = 0;
10619 PyObject * obj0 = 0 ;
10620 PyObject * obj1 = 0 ;
10622 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_mp_bgp_ipv6_set",&obj0,&obj1)) SWIG_fail;
10623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10624 if (!SWIG_IsOK(res1)) {
10625 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_mp_bgp_ipv6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10628 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10629 if (!SWIG_IsOK(ecode2)) {
10630 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_mp_bgp_ipv6_set" "', argument " "2"" of type '" "bool""'");
10632 arg2 =
static_cast< bool >(val2);
10633 if (arg1) (arg1)->mp_bgp_ipv6 = arg2;
10634 resultobj = SWIG_Py_Void();
10641 SWIGINTERN PyObject *_wrap_BgpConfig_mp_bgp_ipv6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10642 PyObject *resultobj = 0;
10646 PyObject * obj0 = 0 ;
10649 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_mp_bgp_ipv6_get",&obj0)) SWIG_fail;
10650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10651 if (!SWIG_IsOK(res1)) {
10652 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_mp_bgp_ipv6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10655 result = (bool) ((arg1)->mp_bgp_ipv6);
10656 resultobj = SWIG_From_bool(static_cast< bool >(result));
10663 SWIGINTERN PyObject *_wrap_BgpConfig_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10664 PyObject *resultobj = 0;
10669 unsigned int val2 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10674 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_asn_set",&obj0,&obj1)) SWIG_fail;
10675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10676 if (!SWIG_IsOK(res1)) {
10677 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_asn_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10680 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10681 if (!SWIG_IsOK(ecode2)) {
10682 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_asn_set" "', argument " "2"" of type '" "uint32_t""'");
10684 arg2 =
static_cast< uint32_t
>(val2);
10685 if (arg1) (arg1)->asn = arg2;
10686 resultobj = SWIG_Py_Void();
10693 SWIGINTERN PyObject *_wrap_BgpConfig_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10694 PyObject *resultobj = 0;
10698 PyObject * obj0 = 0 ;
10701 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_asn_get",&obj0)) SWIG_fail;
10702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10703 if (!SWIG_IsOK(res1)) {
10704 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_asn_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10707 result = (uint32_t) ((arg1)->asn);
10708 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
10715 SWIGINTERN PyObject *_wrap_BgpConfig_peer_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10716 PyObject *resultobj = 0;
10721 unsigned int val2 ;
10723 PyObject * obj0 = 0 ;
10724 PyObject * obj1 = 0 ;
10726 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_peer_asn_set",&obj0,&obj1)) SWIG_fail;
10727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10728 if (!SWIG_IsOK(res1)) {
10729 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_peer_asn_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10732 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10733 if (!SWIG_IsOK(ecode2)) {
10734 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_peer_asn_set" "', argument " "2"" of type '" "uint32_t""'");
10736 arg2 =
static_cast< uint32_t
>(val2);
10737 if (arg1) (arg1)->peer_asn = arg2;
10738 resultobj = SWIG_Py_Void();
10745 SWIGINTERN PyObject *_wrap_BgpConfig_peer_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10746 PyObject *resultobj = 0;
10750 PyObject * obj0 = 0 ;
10753 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_peer_asn_get",&obj0)) SWIG_fail;
10754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10755 if (!SWIG_IsOK(res1)) {
10756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_peer_asn_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10759 result = (uint32_t) ((arg1)->peer_asn);
10760 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
10767 SWIGINTERN PyObject *_wrap_BgpConfig_router_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10768 PyObject *resultobj = 0;
10773 unsigned int val2 ;
10775 PyObject * obj0 = 0 ;
10776 PyObject * obj1 = 0 ;
10778 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_router_id_set",&obj0,&obj1)) SWIG_fail;
10779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10780 if (!SWIG_IsOK(res1)) {
10781 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_router_id_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10784 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10785 if (!SWIG_IsOK(ecode2)) {
10786 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_router_id_set" "', argument " "2"" of type '" "uint32_t""'");
10788 arg2 =
static_cast< uint32_t
>(val2);
10789 if (arg1) (arg1)->router_id = arg2;
10790 resultobj = SWIG_Py_Void();
10797 SWIGINTERN PyObject *_wrap_BgpConfig_router_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10798 PyObject *resultobj = 0;
10802 PyObject * obj0 = 0 ;
10805 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_router_id_get",&obj0)) SWIG_fail;
10806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10807 if (!SWIG_IsOK(res1)) {
10808 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_router_id_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10811 result = (uint32_t) ((arg1)->router_id);
10812 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
10819 SWIGINTERN PyObject *_wrap_BgpConfig_peering_lan4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10820 PyObject *resultobj = 0;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10830 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_peering_lan4_set",&obj0,&obj1)) SWIG_fail;
10831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10832 if (!SWIG_IsOK(res1)) {
10833 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_peering_lan4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10836 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
10837 if (!SWIG_IsOK(res2)) {
10838 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_peering_lan4_set" "', argument " "2"" of type '" "libbgp::Prefix4 *""'");
10841 if (arg1) (arg1)->peering_lan4 = *arg2;
10842 resultobj = SWIG_Py_Void();
10849 SWIGINTERN PyObject *_wrap_BgpConfig_peering_lan4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10850 PyObject *resultobj = 0;
10854 PyObject * obj0 = 0 ;
10857 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_peering_lan4_get",&obj0)) SWIG_fail;
10858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10859 if (!SWIG_IsOK(res1)) {
10860 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_peering_lan4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
10871 SWIGINTERN PyObject *_wrap_BgpConfig_peering_lan6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10872 PyObject *resultobj = 0;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10882 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_peering_lan6_set",&obj0,&obj1)) SWIG_fail;
10883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10884 if (!SWIG_IsOK(res1)) {
10885 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_peering_lan6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
10889 if (!SWIG_IsOK(res2)) {
10890 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_peering_lan6_set" "', argument " "2"" of type '" "libbgp::Prefix6 *""'");
10893 if (arg1) (arg1)->peering_lan6 = *arg2;
10894 resultobj = SWIG_Py_Void();
10901 SWIGINTERN PyObject *_wrap_BgpConfig_peering_lan6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10902 PyObject *resultobj = 0;
10906 PyObject * obj0 = 0 ;
10909 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_peering_lan6_get",&obj0)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_peering_lan6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
10923 SWIGINTERN PyObject *_wrap_BgpConfig_no_nexthop_check4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10924 PyObject *resultobj = 0;
10931 PyObject * obj0 = 0 ;
10932 PyObject * obj1 = 0 ;
10934 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_no_nexthop_check4_set",&obj0,&obj1)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_nexthop_check4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10940 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10941 if (!SWIG_IsOK(ecode2)) {
10942 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_no_nexthop_check4_set" "', argument " "2"" of type '" "bool""'");
10944 arg2 =
static_cast< bool >(val2);
10945 if (arg1) (arg1)->no_nexthop_check4 = arg2;
10946 resultobj = SWIG_Py_Void();
10953 SWIGINTERN PyObject *_wrap_BgpConfig_no_nexthop_check4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10954 PyObject *resultobj = 0;
10958 PyObject * obj0 = 0 ;
10961 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_no_nexthop_check4_get",&obj0)) SWIG_fail;
10962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10963 if (!SWIG_IsOK(res1)) {
10964 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_nexthop_check4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10967 result = (bool) ((arg1)->no_nexthop_check4);
10968 resultobj = SWIG_From_bool(static_cast< bool >(result));
10975 SWIGINTERN PyObject *_wrap_BgpConfig_default_nexthop4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
10976 PyObject *resultobj = 0;
10981 unsigned int val2 ;
10983 PyObject * obj0 = 0 ;
10984 PyObject * obj1 = 0 ;
10986 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_default_nexthop4_set",&obj0,&obj1)) SWIG_fail;
10987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
10988 if (!SWIG_IsOK(res1)) {
10989 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_default_nexthop4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
10992 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10993 if (!SWIG_IsOK(ecode2)) {
10994 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_default_nexthop4_set" "', argument " "2"" of type '" "uint32_t""'");
10996 arg2 =
static_cast< uint32_t
>(val2);
10997 if (arg1) (arg1)->default_nexthop4 = arg2;
10998 resultobj = SWIG_Py_Void();
11005 SWIGINTERN PyObject *_wrap_BgpConfig_default_nexthop4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11006 PyObject *resultobj = 0;
11010 PyObject * obj0 = 0 ;
11013 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_default_nexthop4_get",&obj0)) SWIG_fail;
11014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11015 if (!SWIG_IsOK(res1)) {
11016 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_default_nexthop4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11019 result = (uint32_t) ((arg1)->default_nexthop4);
11020 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
11027 SWIGINTERN PyObject *_wrap_BgpConfig_forced_default_nexthop4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11028 PyObject *resultobj = 0;
11035 PyObject * obj0 = 0 ;
11036 PyObject * obj1 = 0 ;
11038 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_forced_default_nexthop4_set",&obj0,&obj1)) SWIG_fail;
11039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11040 if (!SWIG_IsOK(res1)) {
11041 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_forced_default_nexthop4_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11044 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11045 if (!SWIG_IsOK(ecode2)) {
11046 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_forced_default_nexthop4_set" "', argument " "2"" of type '" "bool""'");
11048 arg2 =
static_cast< bool >(val2);
11049 if (arg1) (arg1)->forced_default_nexthop4 = arg2;
11050 resultobj = SWIG_Py_Void();
11057 SWIGINTERN PyObject *_wrap_BgpConfig_forced_default_nexthop4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11058 PyObject *resultobj = 0;
11062 PyObject * obj0 = 0 ;
11065 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_forced_default_nexthop4_get",&obj0)) SWIG_fail;
11066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_forced_default_nexthop4_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11071 result = (bool) ((arg1)->forced_default_nexthop4);
11072 resultobj = SWIG_From_bool(static_cast< bool >(result));
11079 SWIGINTERN PyObject *_wrap_BgpConfig_no_nexthop_check6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11080 PyObject *resultobj = 0;
11087 PyObject * obj0 = 0 ;
11088 PyObject * obj1 = 0 ;
11090 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_no_nexthop_check6_set",&obj0,&obj1)) SWIG_fail;
11091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11092 if (!SWIG_IsOK(res1)) {
11093 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_nexthop_check6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11096 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11097 if (!SWIG_IsOK(ecode2)) {
11098 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_no_nexthop_check6_set" "', argument " "2"" of type '" "bool""'");
11100 arg2 =
static_cast< bool >(val2);
11101 if (arg1) (arg1)->no_nexthop_check6 = arg2;
11102 resultobj = SWIG_Py_Void();
11109 SWIGINTERN PyObject *_wrap_BgpConfig_no_nexthop_check6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11110 PyObject *resultobj = 0;
11114 PyObject * obj0 = 0 ;
11117 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_no_nexthop_check6_get",&obj0)) SWIG_fail;
11118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11119 if (!SWIG_IsOK(res1)) {
11120 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_nexthop_check6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11123 result = (bool) ((arg1)->no_nexthop_check6);
11124 resultobj = SWIG_From_bool(static_cast< bool >(result));
11131 SWIGINTERN PyObject *_wrap_BgpConfig_default_nexthop6_global_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11132 PyObject *resultobj = 0;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11142 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_default_nexthop6_global_set",&obj0,&obj1)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_default_nexthop6_global_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11149 if (!SWIG_IsOK(res2)) {
11150 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_default_nexthop6_global_set" "', argument " "2"" of type '" "uint8_t [16]""'");
11152 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11158 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""default_nexthop6_global""' of type '""uint8_t [16]""'");
11161 resultobj = SWIG_Py_Void();
11168 SWIGINTERN PyObject *_wrap_BgpConfig_default_nexthop6_global_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11169 PyObject *resultobj = 0;
11173 PyObject * obj0 = 0 ;
11174 uint8_t *result = 0 ;
11176 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_default_nexthop6_global_get",&obj0)) SWIG_fail;
11177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11178 if (!SWIG_IsOK(res1)) {
11179 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_default_nexthop6_global_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11182 result = (uint8_t *)(uint8_t *) ((arg1)->default_nexthop6_global);
11183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
11190 SWIGINTERN PyObject *_wrap_BgpConfig_default_nexthop6_linklocal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11191 PyObject *resultobj = 0;
11198 PyObject * obj0 = 0 ;
11199 PyObject * obj1 = 0 ;
11201 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_default_nexthop6_linklocal_set",&obj0,&obj1)) SWIG_fail;
11202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11203 if (!SWIG_IsOK(res1)) {
11204 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_default_nexthop6_linklocal_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
11208 if (!SWIG_IsOK(res2)) {
11209 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_default_nexthop6_linklocal_set" "', argument " "2"" of type '" "uint8_t [16]""'");
11211 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
11217 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""default_nexthop6_linklocal""' of type '""uint8_t [16]""'");
11220 resultobj = SWIG_Py_Void();
11227 SWIGINTERN PyObject *_wrap_BgpConfig_default_nexthop6_linklocal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11228 PyObject *resultobj = 0;
11232 PyObject * obj0 = 0 ;
11233 uint8_t *result = 0 ;
11235 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_default_nexthop6_linklocal_get",&obj0)) SWIG_fail;
11236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11237 if (!SWIG_IsOK(res1)) {
11238 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_default_nexthop6_linklocal_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11241 result = (uint8_t *)(uint8_t *) ((arg1)->default_nexthop6_linklocal);
11242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
11249 SWIGINTERN PyObject *_wrap_BgpConfig_forced_default_nexthop6_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11250 PyObject *resultobj = 0;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11260 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_forced_default_nexthop6_set",&obj0,&obj1)) SWIG_fail;
11261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11262 if (!SWIG_IsOK(res1)) {
11263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_forced_default_nexthop6_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11266 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11267 if (!SWIG_IsOK(ecode2)) {
11268 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_forced_default_nexthop6_set" "', argument " "2"" of type '" "bool""'");
11270 arg2 =
static_cast< bool >(val2);
11271 if (arg1) (arg1)->forced_default_nexthop6 = arg2;
11272 resultobj = SWIG_Py_Void();
11279 SWIGINTERN PyObject *_wrap_BgpConfig_forced_default_nexthop6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11280 PyObject *resultobj = 0;
11284 PyObject * obj0 = 0 ;
11287 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_forced_default_nexthop6_get",&obj0)) SWIG_fail;
11288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11289 if (!SWIG_IsOK(res1)) {
11290 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_forced_default_nexthop6_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11293 result = (bool) ((arg1)->forced_default_nexthop6);
11294 resultobj = SWIG_From_bool(static_cast< bool >(result));
11301 SWIGINTERN PyObject *_wrap_BgpConfig_hold_timer_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11302 PyObject *resultobj = 0;
11307 unsigned short val2 ;
11309 PyObject * obj0 = 0 ;
11310 PyObject * obj1 = 0 ;
11312 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_hold_timer_set",&obj0,&obj1)) SWIG_fail;
11313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11314 if (!SWIG_IsOK(res1)) {
11315 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_hold_timer_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11318 ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
11319 if (!SWIG_IsOK(ecode2)) {
11320 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_hold_timer_set" "', argument " "2"" of type '" "uint16_t""'");
11322 arg2 =
static_cast< uint16_t
>(val2);
11323 if (arg1) (arg1)->hold_timer = arg2;
11324 resultobj = SWIG_Py_Void();
11331 SWIGINTERN PyObject *_wrap_BgpConfig_hold_timer_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11332 PyObject *resultobj = 0;
11336 PyObject * obj0 = 0 ;
11339 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_hold_timer_get",&obj0)) SWIG_fail;
11340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_hold_timer_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11345 result = (uint16_t) ((arg1)->hold_timer);
11346 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
11353 SWIGINTERN PyObject *_wrap_BgpConfig_clock_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11354 PyObject *resultobj = 0;
11361 PyObject * obj0 = 0 ;
11362 PyObject * obj1 = 0 ;
11364 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_clock_set",&obj0,&obj1)) SWIG_fail;
11365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11366 if (!SWIG_IsOK(res1)) {
11367 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_clock_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11370 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Clock, SWIG_POINTER_DISOWN | 0 );
11371 if (!SWIG_IsOK(res2)) {
11372 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpConfig_clock_set" "', argument " "2"" of type '" "Clock *""'");
11374 arg2 =
reinterpret_cast< Clock *
>(argp2);
11375 if (arg1) (arg1)->clock = arg2;
11376 resultobj = SWIG_Py_Void();
11383 SWIGINTERN PyObject *_wrap_BgpConfig_clock_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11384 PyObject *resultobj = 0;
11388 PyObject * obj0 = 0 ;
11389 Clock *result = 0 ;
11391 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_clock_get",&obj0)) SWIG_fail;
11392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_clock_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11397 result = (
Clock *) ((arg1)->clock);
11398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Clock, 0 | 0 );
11405 SWIGINTERN PyObject *_wrap_BgpConfig_allow_local_as_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11406 PyObject *resultobj = 0;
11413 PyObject * obj0 = 0 ;
11414 PyObject * obj1 = 0 ;
11416 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_allow_local_as_set",&obj0,&obj1)) SWIG_fail;
11417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11418 if (!SWIG_IsOK(res1)) {
11419 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_allow_local_as_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11422 ecode2 = SWIG_AsVal_signed_SS_char(obj1, &val2);
11423 if (!SWIG_IsOK(ecode2)) {
11424 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_allow_local_as_set" "', argument " "2"" of type '" "int8_t""'");
11426 arg2 =
static_cast< int8_t
>(val2);
11427 if (arg1) (arg1)->allow_local_as = arg2;
11428 resultobj = SWIG_Py_Void();
11435 SWIGINTERN PyObject *_wrap_BgpConfig_allow_local_as_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11436 PyObject *resultobj = 0;
11440 PyObject * obj0 = 0 ;
11443 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_allow_local_as_get",&obj0)) SWIG_fail;
11444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11445 if (!SWIG_IsOK(res1)) {
11446 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_allow_local_as_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11449 result = (int8_t) ((arg1)->allow_local_as);
11450 resultobj = SWIG_From_signed_SS_char(static_cast< signed char >(result));
11457 SWIGINTERN PyObject *_wrap_BgpConfig_weight_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11458 PyObject *resultobj = 0;
11465 PyObject * obj0 = 0 ;
11466 PyObject * obj1 = 0 ;
11468 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_weight_set",&obj0,&obj1)) SWIG_fail;
11469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11470 if (!SWIG_IsOK(res1)) {
11471 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_weight_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11474 ecode2 = SWIG_AsVal_int(obj1, &val2);
11475 if (!SWIG_IsOK(ecode2)) {
11476 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_weight_set" "', argument " "2"" of type '" "int32_t""'");
11478 arg2 =
static_cast< int32_t
>(val2);
11479 if (arg1) (arg1)->weight = arg2;
11480 resultobj = SWIG_Py_Void();
11487 SWIGINTERN PyObject *_wrap_BgpConfig_weight_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11488 PyObject *resultobj = 0;
11492 PyObject * obj0 = 0 ;
11495 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_weight_get",&obj0)) SWIG_fail;
11496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11497 if (!SWIG_IsOK(res1)) {
11498 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_weight_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11501 result = (int32_t) ((arg1)->weight);
11502 resultobj = SWIG_From_int(static_cast< int >(result));
11509 SWIGINTERN PyObject *_wrap_BgpConfig_no_autotick_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11510 PyObject *resultobj = 0;
11517 PyObject * obj0 = 0 ;
11518 PyObject * obj1 = 0 ;
11520 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpConfig_no_autotick_set",&obj0,&obj1)) SWIG_fail;
11521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11522 if (!SWIG_IsOK(res1)) {
11523 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_autotick_set" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11526 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11527 if (!SWIG_IsOK(ecode2)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpConfig_no_autotick_set" "', argument " "2"" of type '" "bool""'");
11530 arg2 =
static_cast< bool >(val2);
11531 if (arg1) (arg1)->no_autotick = arg2;
11532 resultobj = SWIG_Py_Void();
11539 SWIGINTERN PyObject *_wrap_BgpConfig_no_autotick_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11540 PyObject *resultobj = 0;
11544 PyObject * obj0 = 0 ;
11547 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpConfig_no_autotick_get",&obj0)) SWIG_fail;
11548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, 0 | 0 );
11549 if (!SWIG_IsOK(res1)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpConfig_no_autotick_get" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11553 result = (bool) ((arg1)->no_autotick);
11554 resultobj = SWIG_From_bool(static_cast< bool >(result));
11561 SWIGINTERN PyObject *_wrap_delete_BgpConfig(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11562 PyObject *resultobj = 0;
11566 PyObject * obj0 = 0 ;
11568 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpConfig",&obj0)) SWIG_fail;
11569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpConfig, SWIG_POINTER_DISOWN | 0 );
11570 if (!SWIG_IsOK(res1)) {
11571 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpConfig" "', argument " "1"" of type '" "libbgp::BgpConfig *""'");
11575 resultobj = SWIG_Py_Void();
11582 SWIGINTERN PyObject *BgpConfig_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11584 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
11585 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpConfig, SWIG_NewClientData(obj));
11586 return SWIG_Py_Void();
11589 SWIGINTERN
int Swig_var_bgp_error_code_str_set(PyObject *_val) {
11591 char const * *inp = 0;
11592 int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char, 0 );
11593 if (!SWIG_IsOK(res)) {
11594 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""libbgp::bgp_error_code_str""' of type '""char const *[7]""'");
11599 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""libbgp::bgp_error_code_str""' of type '""char const *[7]""'");
11608 SWIGINTERN PyObject *Swig_var_bgp_error_code_str_get(
void) {
11609 PyObject *pyobj = 0;
11616 SWIGINTERN
int Swig_var_bgp_header_error_subcode_str_set(PyObject *_val) {
11618 char const * *inp = 0;
11619 int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char, 0 );
11620 if (!SWIG_IsOK(res)) {
11621 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""libbgp::bgp_header_error_subcode_str""' of type '""char const *[4]""'");
11626 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""libbgp::bgp_header_error_subcode_str""' of type '""char const *[4]""'");
11635 SWIGINTERN PyObject *Swig_var_bgp_header_error_subcode_str_get(
void) {
11636 PyObject *pyobj = 0;
11643 SWIGINTERN
int Swig_var_bgp_open_error_subcode_str_set(PyObject *_val) {
11645 char const * *inp = 0;
11646 int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char, 0 );
11647 if (!SWIG_IsOK(res)) {
11648 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""libbgp::bgp_open_error_subcode_str""' of type '""char const *[8]""'");
11653 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""libbgp::bgp_open_error_subcode_str""' of type '""char const *[8]""'");
11662 SWIGINTERN PyObject *Swig_var_bgp_open_error_subcode_str_get(
void) {
11663 PyObject *pyobj = 0;
11670 SWIGINTERN
int Swig_var_bgp_update_error_str_set(PyObject *_val) {
11672 char const * *inp = 0;
11673 int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char, 0 );
11674 if (!SWIG_IsOK(res)) {
11675 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""libbgp::bgp_update_error_str""' of type '""char const *[12]""'");
11680 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""libbgp::bgp_update_error_str""' of type '""char const *[12]""'");
11689 SWIGINTERN PyObject *Swig_var_bgp_update_error_str_get(
void) {
11690 PyObject *pyobj = 0;
11697 SWIGINTERN
int Swig_var_bgp_fsm_error_str_set(PyObject *_val) {
11699 char const * *inp = 0;
11700 int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char, 0 );
11701 if (!SWIG_IsOK(res)) {
11702 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""libbgp::bgp_fsm_error_str""' of type '""char const *[4]""'");
11707 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""libbgp::bgp_fsm_error_str""' of type '""char const *[4]""'");
11716 SWIGINTERN PyObject *Swig_var_bgp_fsm_error_str_get(
void) {
11717 PyObject *pyobj = 0;
11724 SWIGINTERN
int Swig_var_bgp_cease_error_str_set(PyObject *_val) {
11726 char const * *inp = 0;
11727 int res = SWIG_ConvertPtr(_val, SWIG_as_voidptrptr(&inp), SWIGTYPE_p_p_char, 0 );
11728 if (!SWIG_IsOK(res)) {
11729 SWIG_exception_fail(SWIG_ArgError(res),
"in variable '""libbgp::bgp_cease_error_str""' of type '""char const *[9]""'");
11734 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""libbgp::bgp_cease_error_str""' of type '""char const *[9]""'");
11743 SWIGINTERN PyObject *Swig_var_bgp_cease_error_str_get(
void) {
11744 PyObject *pyobj = 0;
11751 SWIGINTERN PyObject *_wrap_new_BgpFsm(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11752 PyObject *resultobj = 0;
11756 PyObject * obj0 = 0 ;
11759 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpFsm",&obj0)) SWIG_fail;
11760 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_libbgp__BgpConfig, 0 | 0);
11761 if (!SWIG_IsOK(res1)) {
11762 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpFsm" "', argument " "1"" of type '" "libbgp::BgpConfig const &""'");
11765 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpFsm" "', argument " "1"" of type '" "libbgp::BgpConfig const &""'");
11769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpFsm, SWIG_POINTER_NEW | 0 );
11776 SWIGINTERN PyObject *_wrap_delete_BgpFsm(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11777 PyObject *resultobj = 0;
11781 PyObject * obj0 = 0 ;
11783 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpFsm",&obj0)) SWIG_fail;
11784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, SWIG_POINTER_DISOWN | 0 );
11785 if (!SWIG_IsOK(res1)) {
11786 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpFsm" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
11790 resultobj = SWIG_Py_Void();
11797 SWIGINTERN PyObject *_wrap_BgpFsm_getAsn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11798 PyObject *resultobj = 0;
11802 PyObject * obj0 = 0 ;
11805 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getAsn",&obj0)) SWIG_fail;
11806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11807 if (!SWIG_IsOK(res1)) {
11808 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getAsn" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11812 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
11819 SWIGINTERN PyObject *_wrap_BgpFsm_getBgpId(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11820 PyObject *resultobj = 0;
11824 PyObject * obj0 = 0 ;
11827 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getBgpId",&obj0)) SWIG_fail;
11828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11829 if (!SWIG_IsOK(res1)) {
11830 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getBgpId" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11834 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
11841 SWIGINTERN PyObject *_wrap_BgpFsm_getPeerAsn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11842 PyObject *resultobj = 0;
11846 PyObject * obj0 = 0 ;
11849 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getPeerAsn",&obj0)) SWIG_fail;
11850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11851 if (!SWIG_IsOK(res1)) {
11852 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getPeerAsn" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11855 result = (uint32_t)((
libbgp::BgpFsm const *)arg1)->getPeerAsn();
11856 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
11863 SWIGINTERN PyObject *_wrap_BgpFsm_getPeerBgpId(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11864 PyObject *resultobj = 0;
11868 PyObject * obj0 = 0 ;
11871 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getPeerBgpId",&obj0)) SWIG_fail;
11872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11873 if (!SWIG_IsOK(res1)) {
11874 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getPeerBgpId" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11877 result = (uint32_t)((
libbgp::BgpFsm const *)arg1)->getPeerBgpId();
11878 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
11885 SWIGINTERN PyObject *_wrap_BgpFsm_getHoldTimer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11886 PyObject *resultobj = 0;
11890 PyObject * obj0 = 0 ;
11893 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getHoldTimer",&obj0)) SWIG_fail;
11894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11895 if (!SWIG_IsOK(res1)) {
11896 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getHoldTimer" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11899 result = (uint16_t)((
libbgp::BgpFsm const *)arg1)->getHoldTimer();
11900 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
11907 SWIGINTERN PyObject *_wrap_BgpFsm_getRib4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11908 PyObject *resultobj = 0;
11912 PyObject * obj0 = 0 ;
11915 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getRib4",&obj0)) SWIG_fail;
11916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11917 if (!SWIG_IsOK(res1)) {
11918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getRib4" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BgpRib4, 0 | 0 );
11929 SWIGINTERN PyObject *_wrap_BgpFsm_getRib6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11930 PyObject *resultobj = 0;
11934 PyObject * obj0 = 0 ;
11937 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getRib6",&obj0)) SWIG_fail;
11938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11939 if (!SWIG_IsOK(res1)) {
11940 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getRib6" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BgpRib6, 0 | 0 );
11951 SWIGINTERN PyObject *_wrap_BgpFsm_getState(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11952 PyObject *resultobj = 0;
11956 PyObject * obj0 = 0 ;
11959 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_getState",&obj0)) SWIG_fail;
11960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_getState" "', argument " "1"" of type '" "libbgp::BgpFsm const *""'");
11966 resultobj = SWIG_From_int(static_cast< int >(result));
11973 SWIGINTERN PyObject *_wrap_BgpFsm_start(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11974 PyObject *resultobj = 0;
11978 PyObject * obj0 = 0 ;
11981 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_start",&obj0)) SWIG_fail;
11982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_start" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
11987 result = (int)(arg1)->
start();
11988 resultobj = SWIG_From_int(static_cast< int >(result));
11995 SWIGINTERN PyObject *_wrap_BgpFsm_stop(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
11996 PyObject *resultobj = 0;
12000 PyObject * obj0 = 0 ;
12003 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_stop",&obj0)) SWIG_fail;
12004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
12005 if (!SWIG_IsOK(res1)) {
12006 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_stop" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
12009 result = (int)(arg1)->
stop();
12010 resultobj = SWIG_From_int(static_cast< int >(result));
12017 SWIGINTERN PyObject *_wrap_BgpFsm_run(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12018 PyObject *resultobj = 0;
12020 uint8_t *arg2 = (uint8_t *) 0 ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 PyObject * obj2 = 0 ;
12033 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpFsm_run",&obj0,&obj1,&obj2)) SWIG_fail;
12034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
12035 if (!SWIG_IsOK(res1)) {
12036 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_run" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
12039 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12040 if (!SWIG_IsOK(res2)) {
12041 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpFsm_run" "', argument " "2"" of type '" "uint8_t const *""'");
12043 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12044 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12045 if (!SWIG_IsOK(ecode3)) {
12046 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpFsm_run" "', argument " "3"" of type '" "size_t""'");
12048 arg3 =
static_cast< size_t >(val3);
12049 result = (int)(arg1)->run((uint8_t
const *)arg2,arg3);
12050 resultobj = SWIG_From_int(static_cast< int >(result));
12057 SWIGINTERN PyObject *_wrap_BgpFsm_tick(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12058 PyObject *resultobj = 0;
12062 PyObject * obj0 = 0 ;
12065 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_tick",&obj0)) SWIG_fail;
12066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_tick" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
12071 result = (int)(arg1)->
tick();
12072 resultobj = SWIG_From_int(static_cast< int >(result));
12079 SWIGINTERN PyObject *_wrap_BgpFsm_resetSoft(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12080 PyObject *resultobj = 0;
12084 PyObject * obj0 = 0 ;
12087 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_resetSoft",&obj0)) SWIG_fail;
12088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
12089 if (!SWIG_IsOK(res1)) {
12090 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_resetSoft" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
12094 resultobj = SWIG_From_int(static_cast< int >(result));
12101 SWIGINTERN PyObject *_wrap_BgpFsm_resetHard(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12102 PyObject *resultobj = 0;
12106 PyObject * obj0 = 0 ;
12108 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpFsm_resetHard",&obj0)) SWIG_fail;
12109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpFsm, 0 | 0 );
12110 if (!SWIG_IsOK(res1)) {
12111 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpFsm_resetHard" "', argument " "1"" of type '" "libbgp::BgpFsm *""'");
12114 (arg1)->resetHard();
12115 resultobj = SWIG_Py_Void();
12122 SWIGINTERN PyObject *BgpFsm_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12124 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
12125 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpFsm, SWIG_NewClientData(obj));
12126 return SWIG_Py_Void();
12129 SWIGINTERN PyObject *_wrap_new_BgpLogHandler(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12130 PyObject *resultobj = 0;
12133 if (!PyArg_ParseTuple(args,(
char *)
":new_BgpLogHandler")) SWIG_fail;
12135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpLogHandler, SWIG_POINTER_NEW | 0 );
12142 SWIGINTERN PyObject *_wrap_BgpLogHandler_log__SWIG_0__varargs__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args, PyObject *varargs) {
12143 PyObject *resultobj = 0;
12146 char *arg3 = (
char *) 0 ;
12155 PyObject * obj0 = 0 ;
12156 PyObject * obj1 = 0 ;
12157 PyObject * obj2 = 0 ;
12159 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpLogHandler_log",&obj0,&obj1,&obj2)) SWIG_fail;
12160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12161 if (!SWIG_IsOK(res1)) {
12162 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpLogHandler_log" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12165 ecode2 = SWIG_AsVal_int(obj1, &val2);
12166 if (!SWIG_IsOK(ecode2)) {
12167 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpLogHandler_log" "', argument " "2"" of type '" "libbgp::LogLevel""'");
12170 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
12171 if (!SWIG_IsOK(res3)) {
12172 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpLogHandler_log" "', argument " "3"" of type '" "char const *""'");
12174 arg3 =
reinterpret_cast< char *
>(buf3);
12175 (arg1)->log(arg2,(
char const *)arg3,arg4);
12176 resultobj = SWIG_Py_Void();
12177 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
12180 if (alloc3 == SWIG_NEWOBJ)
delete[] buf3;
12185 SWIGINTERN PyObject *_wrap_BgpLogHandler_log__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12186 PyObject *resultobj;
12190 newargs = PyTuple_GetSlice(args,0,3);
12191 varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args));
12192 resultobj = _wrap_BgpLogHandler_log__SWIG_0__varargs__(NULL,newargs,varargs);
12193 Py_XDECREF(newargs);
12194 Py_XDECREF(varargs);
12199 SWIGINTERN PyObject *_wrap_BgpLogHandler_log__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12200 PyObject *resultobj = 0;
12210 PyObject * obj0 = 0 ;
12211 PyObject * obj1 = 0 ;
12212 PyObject * obj2 = 0 ;
12214 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpLogHandler_log",&obj0,&obj1,&obj2)) SWIG_fail;
12215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12216 if (!SWIG_IsOK(res1)) {
12217 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpLogHandler_log" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12220 ecode2 = SWIG_AsVal_int(obj1, &val2);
12221 if (!SWIG_IsOK(ecode2)) {
12222 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpLogHandler_log" "', argument " "2"" of type '" "libbgp::LogLevel""'");
12225 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Serializable, 0 | 0);
12226 if (!SWIG_IsOK(res3)) {
12227 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpLogHandler_log" "', argument " "3"" of type '" "libbgp::Serializable const &""'");
12230 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpLogHandler_log" "', argument " "3"" of type '" "libbgp::Serializable const &""'");
12234 resultobj = SWIG_Py_Void();
12241 SWIGINTERN PyObject *_wrap_BgpLogHandler_log(PyObject *
self, PyObject *args) {
12243 PyObject *argv[4] = {
12248 if (!PyTuple_Check(args)) SWIG_fail;
12249 argc = args ? PyObject_Length(args) : 0;
12250 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12251 argv[ii] = PyTuple_GET_ITEM(args,ii);
12256 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
12257 _v = SWIG_CheckState(res);
12260 int res = SWIG_AsVal_int(argv[1], NULL);
12261 _v = SWIG_CheckState(res);
12264 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Serializable, 0);
12265 _v = SWIG_CheckState(res);
12267 return _wrap_BgpLogHandler_log__SWIG_1(
self, args);
12275 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
12276 _v = SWIG_CheckState(res);
12279 int res = SWIG_AsVal_int(argv[1], NULL);
12280 _v = SWIG_CheckState(res);
12283 int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
12284 _v = SWIG_CheckState(res);
12287 return _wrap_BgpLogHandler_log__SWIG_0(
self, args);
12289 return _wrap_BgpLogHandler_log__SWIG_0(
self, args);
12296 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpLogHandler_log'.\n" 12297 " Possible C/C++ prototypes are:\n" 12298 " libbgp::BgpLogHandler::log(libbgp::LogLevel,char const *,...)\n" 12299 " libbgp::BgpLogHandler::log(libbgp::LogLevel,libbgp::Serializable const &)\n");
12304 SWIGINTERN PyObject *_wrap_BgpLogHandler_setLogLevel(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12305 PyObject *resultobj = 0;
12312 PyObject * obj0 = 0 ;
12313 PyObject * obj1 = 0 ;
12315 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpLogHandler_setLogLevel",&obj0,&obj1)) SWIG_fail;
12316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpLogHandler_setLogLevel" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12321 ecode2 = SWIG_AsVal_int(obj1, &val2);
12322 if (!SWIG_IsOK(ecode2)) {
12323 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpLogHandler_setLogLevel" "', argument " "2"" of type '" "libbgp::LogLevel""'");
12326 (arg1)->setLogLevel(arg2);
12327 resultobj = SWIG_Py_Void();
12334 SWIGINTERN PyObject *_wrap_BgpLogHandler_getLogLevel(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12335 PyObject *resultobj = 0;
12339 PyObject * obj0 = 0 ;
12342 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpLogHandler_getLogLevel",&obj0)) SWIG_fail;
12343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpLogHandler_getLogLevel" "', argument " "1"" of type '" "libbgp::BgpLogHandler const *""'");
12349 resultobj = SWIG_From_int(static_cast< int >(result));
12356 SWIGINTERN PyObject *_wrap_delete_BgpLogHandler(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12357 PyObject *resultobj = 0;
12361 PyObject * obj0 = 0 ;
12363 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpLogHandler",&obj0)) SWIG_fail;
12364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, SWIG_POINTER_DISOWN | 0 );
12365 if (!SWIG_IsOK(res1)) {
12366 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpLogHandler" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12370 resultobj = SWIG_Py_Void();
12377 SWIGINTERN PyObject *BgpLogHandler_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12379 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
12380 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpLogHandler, SWIG_NewClientData(obj));
12381 return SWIG_Py_Void();
12384 SWIGINTERN PyObject *_wrap_BgpMessage_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12385 PyObject *resultobj = 0;
12387 uint8_t *arg2 = (uint8_t *) 0 ;
12395 PyObject * obj0 = 0 ;
12396 PyObject * obj1 = 0 ;
12397 PyObject * obj2 = 0 ;
12400 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpMessage_parse",&obj0,&obj1,&obj2)) SWIG_fail;
12401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpMessage, 0 | 0 );
12402 if (!SWIG_IsOK(res1)) {
12403 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpMessage_parse" "', argument " "1"" of type '" "libbgp::BgpMessage *""'");
12406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12407 if (!SWIG_IsOK(res2)) {
12408 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpMessage_parse" "', argument " "2"" of type '" "uint8_t const *""'");
12410 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12411 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12412 if (!SWIG_IsOK(ecode3)) {
12413 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpMessage_parse" "', argument " "3"" of type '" "size_t""'");
12415 arg3 =
static_cast< size_t >(val3);
12416 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
12417 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12424 SWIGINTERN PyObject *_wrap_BgpMessage_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12425 PyObject *resultobj = 0;
12427 uint8_t *arg2 = (uint8_t *) 0 ;
12435 PyObject * obj0 = 0 ;
12436 PyObject * obj1 = 0 ;
12437 PyObject * obj2 = 0 ;
12440 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpMessage_write",&obj0,&obj1,&obj2)) SWIG_fail;
12441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpMessage, 0 | 0 );
12442 if (!SWIG_IsOK(res1)) {
12443 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpMessage_write" "', argument " "1"" of type '" "libbgp::BgpMessage const *""'");
12446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12447 if (!SWIG_IsOK(res2)) {
12448 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpMessage_write" "', argument " "2"" of type '" "uint8_t *""'");
12450 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12451 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12452 if (!SWIG_IsOK(ecode3)) {
12453 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpMessage_write" "', argument " "3"" of type '" "size_t""'");
12455 arg3 =
static_cast< size_t >(val3);
12457 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12464 SWIGINTERN PyObject *_wrap_BgpMessage_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12465 PyObject *resultobj = 0;
12470 unsigned char val2 ;
12472 PyObject * obj0 = 0 ;
12473 PyObject * obj1 = 0 ;
12475 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpMessage_type_set",&obj0,&obj1)) SWIG_fail;
12476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpMessage, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpMessage_type_set" "', argument " "1"" of type '" "libbgp::BgpMessage *""'");
12481 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
12482 if (!SWIG_IsOK(ecode2)) {
12483 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpMessage_type_set" "', argument " "2"" of type '" "uint8_t""'");
12485 arg2 =
static_cast< uint8_t
>(val2);
12486 if (arg1) (arg1)->type = arg2;
12487 resultobj = SWIG_Py_Void();
12494 SWIGINTERN PyObject *_wrap_BgpMessage_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12495 PyObject *resultobj = 0;
12499 PyObject * obj0 = 0 ;
12502 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpMessage_type_get",&obj0)) SWIG_fail;
12503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpMessage, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpMessage_type_get" "', argument " "1"" of type '" "libbgp::BgpMessage *""'");
12508 result = (uint8_t) ((arg1)->type);
12509 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
12516 SWIGINTERN PyObject *_wrap_delete_BgpMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12517 PyObject *resultobj = 0;
12521 PyObject * obj0 = 0 ;
12523 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpMessage",&obj0)) SWIG_fail;
12524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpMessage, SWIG_POINTER_DISOWN | 0 );
12525 if (!SWIG_IsOK(res1)) {
12526 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpMessage" "', argument " "1"" of type '" "libbgp::BgpMessage *""'");
12530 resultobj = SWIG_Py_Void();
12537 SWIGINTERN PyObject *BgpMessage_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12539 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
12540 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpMessage, SWIG_NewClientData(obj));
12541 return SWIG_Py_Void();
12544 SWIGINTERN PyObject *_wrap_new_BgpBadMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12545 PyObject *resultobj = 0;
12550 unsigned char val2 ;
12552 PyObject * obj0 = 0 ;
12553 PyObject * obj1 = 0 ;
12556 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpBadMessage",&obj0,&obj1)) SWIG_fail;
12557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12558 if (!SWIG_IsOK(res1)) {
12559 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpBadMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12562 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
12563 if (!SWIG_IsOK(ecode2)) {
12564 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpBadMessage" "', argument " "2"" of type '" "uint8_t""'");
12566 arg2 =
static_cast< uint8_t
>(val2);
12568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpBadMessage, SWIG_POINTER_NEW | 0 );
12575 SWIGINTERN PyObject *_wrap_BgpBadMessage_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12576 PyObject *resultobj = 0;
12579 uint8_t **arg3 = (uint8_t **) 0 ;
12580 size_t *arg4 = (
size_t *) 0 ;
12589 PyObject * obj0 = 0 ;
12590 PyObject * obj1 = 0 ;
12591 PyObject * obj2 = 0 ;
12592 PyObject * obj3 = 0 ;
12595 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpBadMessage_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpBadMessage, 0 | 0 );
12597 if (!SWIG_IsOK(res1)) {
12598 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpBadMessage_doPrint" "', argument " "1"" of type '" "libbgp::BgpBadMessage const *""'");
12601 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
12602 if (!SWIG_IsOK(ecode2)) {
12603 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpBadMessage_doPrint" "', argument " "2"" of type '" "size_t""'");
12605 arg2 =
static_cast< size_t >(val2);
12606 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
12607 if (!SWIG_IsOK(res3)) {
12608 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpBadMessage_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
12610 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
12611 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
12612 if (!SWIG_IsOK(res4)) {
12613 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpBadMessage_doPrint" "', argument " "4"" of type '" "size_t *""'");
12615 arg4 =
reinterpret_cast< size_t *
>(argp4);
12617 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12624 SWIGINTERN PyObject *_wrap_BgpBadMessage_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12625 PyObject *resultobj = 0;
12627 uint8_t *arg2 = (uint8_t *) 0 ;
12635 PyObject * obj0 = 0 ;
12636 PyObject * obj1 = 0 ;
12637 PyObject * obj2 = 0 ;
12640 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpBadMessage_parse",&obj0,&obj1,&obj2)) SWIG_fail;
12641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpBadMessage, 0 | 0 );
12642 if (!SWIG_IsOK(res1)) {
12643 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpBadMessage_parse" "', argument " "1"" of type '" "libbgp::BgpBadMessage *""'");
12646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12647 if (!SWIG_IsOK(res2)) {
12648 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpBadMessage_parse" "', argument " "2"" of type '" "uint8_t const *""'");
12650 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12651 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12652 if (!SWIG_IsOK(ecode3)) {
12653 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpBadMessage_parse" "', argument " "3"" of type '" "size_t""'");
12655 arg3 =
static_cast< size_t >(val3);
12656 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
12657 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12664 SWIGINTERN PyObject *_wrap_BgpBadMessage_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12665 PyObject *resultobj = 0;
12667 uint8_t *arg2 = (uint8_t *) 0 ;
12675 PyObject * obj0 = 0 ;
12676 PyObject * obj1 = 0 ;
12677 PyObject * obj2 = 0 ;
12680 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpBadMessage_write",&obj0,&obj1,&obj2)) SWIG_fail;
12681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpBadMessage, 0 | 0 );
12682 if (!SWIG_IsOK(res1)) {
12683 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpBadMessage_write" "', argument " "1"" of type '" "libbgp::BgpBadMessage const *""'");
12686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12687 if (!SWIG_IsOK(res2)) {
12688 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpBadMessage_write" "', argument " "2"" of type '" "uint8_t *""'");
12690 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12691 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12692 if (!SWIG_IsOK(ecode3)) {
12693 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpBadMessage_write" "', argument " "3"" of type '" "size_t""'");
12695 arg3 =
static_cast< size_t >(val3);
12697 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12704 SWIGINTERN PyObject *_wrap_delete_BgpBadMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12705 PyObject *resultobj = 0;
12709 PyObject * obj0 = 0 ;
12711 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpBadMessage",&obj0)) SWIG_fail;
12712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpBadMessage, SWIG_POINTER_DISOWN | 0 );
12713 if (!SWIG_IsOK(res1)) {
12714 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpBadMessage" "', argument " "1"" of type '" "libbgp::BgpBadMessage *""'");
12718 resultobj = SWIG_Py_Void();
12725 SWIGINTERN PyObject *BgpBadMessage_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12727 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
12728 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpBadMessage, SWIG_NewClientData(obj));
12729 return SWIG_Py_Void();
12732 SWIGINTERN PyObject *_wrap_new_BgpKeepaliveMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12733 PyObject *resultobj = 0;
12737 PyObject * obj0 = 0 ;
12740 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpKeepaliveMessage",&obj0)) SWIG_fail;
12741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12742 if (!SWIG_IsOK(res1)) {
12743 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpKeepaliveMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpKeepaliveMessage, SWIG_POINTER_NEW | 0 );
12754 SWIGINTERN PyObject *_wrap_BgpKeepaliveMessage_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12755 PyObject *resultobj = 0;
12758 uint8_t **arg3 = (uint8_t **) 0 ;
12759 size_t *arg4 = (
size_t *) 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 PyObject * obj2 = 0 ;
12771 PyObject * obj3 = 0 ;
12774 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpKeepaliveMessage_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpKeepaliveMessage, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpKeepaliveMessage_doPrint" "', argument " "1"" of type '" "libbgp::BgpKeepaliveMessage const *""'");
12780 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
12781 if (!SWIG_IsOK(ecode2)) {
12782 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpKeepaliveMessage_doPrint" "', argument " "2"" of type '" "size_t""'");
12784 arg2 =
static_cast< size_t >(val2);
12785 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
12786 if (!SWIG_IsOK(res3)) {
12787 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpKeepaliveMessage_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
12789 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
12790 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
12791 if (!SWIG_IsOK(res4)) {
12792 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpKeepaliveMessage_doPrint" "', argument " "4"" of type '" "size_t *""'");
12794 arg4 =
reinterpret_cast< size_t *
>(argp4);
12796 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12803 SWIGINTERN PyObject *_wrap_BgpKeepaliveMessage_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12804 PyObject *resultobj = 0;
12806 uint8_t *arg2 = (uint8_t *) 0 ;
12814 PyObject * obj0 = 0 ;
12815 PyObject * obj1 = 0 ;
12816 PyObject * obj2 = 0 ;
12819 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpKeepaliveMessage_parse",&obj0,&obj1,&obj2)) SWIG_fail;
12820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpKeepaliveMessage, 0 | 0 );
12821 if (!SWIG_IsOK(res1)) {
12822 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpKeepaliveMessage_parse" "', argument " "1"" of type '" "libbgp::BgpKeepaliveMessage *""'");
12825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12826 if (!SWIG_IsOK(res2)) {
12827 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpKeepaliveMessage_parse" "', argument " "2"" of type '" "uint8_t const *""'");
12829 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12830 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12831 if (!SWIG_IsOK(ecode3)) {
12832 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpKeepaliveMessage_parse" "', argument " "3"" of type '" "size_t""'");
12834 arg3 =
static_cast< size_t >(val3);
12835 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
12836 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12843 SWIGINTERN PyObject *_wrap_BgpKeepaliveMessage_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12844 PyObject *resultobj = 0;
12846 uint8_t *arg2 = (uint8_t *) 0 ;
12854 PyObject * obj0 = 0 ;
12855 PyObject * obj1 = 0 ;
12856 PyObject * obj2 = 0 ;
12859 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpKeepaliveMessage_write",&obj0,&obj1,&obj2)) SWIG_fail;
12860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpKeepaliveMessage, 0 | 0 );
12861 if (!SWIG_IsOK(res1)) {
12862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpKeepaliveMessage_write" "', argument " "1"" of type '" "libbgp::BgpKeepaliveMessage const *""'");
12865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
12866 if (!SWIG_IsOK(res2)) {
12867 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpKeepaliveMessage_write" "', argument " "2"" of type '" "uint8_t *""'");
12869 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
12870 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
12871 if (!SWIG_IsOK(ecode3)) {
12872 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpKeepaliveMessage_write" "', argument " "3"" of type '" "size_t""'");
12874 arg3 =
static_cast< size_t >(val3);
12876 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
12883 SWIGINTERN PyObject *_wrap_delete_BgpKeepaliveMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12884 PyObject *resultobj = 0;
12888 PyObject * obj0 = 0 ;
12890 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpKeepaliveMessage",&obj0)) SWIG_fail;
12891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpKeepaliveMessage, SWIG_POINTER_DISOWN | 0 );
12892 if (!SWIG_IsOK(res1)) {
12893 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpKeepaliveMessage" "', argument " "1"" of type '" "libbgp::BgpKeepaliveMessage *""'");
12897 resultobj = SWIG_Py_Void();
12904 SWIGINTERN PyObject *BgpKeepaliveMessage_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12906 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
12907 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpKeepaliveMessage, SWIG_NewClientData(obj));
12908 return SWIG_Py_Void();
12911 SWIGINTERN PyObject *_wrap_new_BgpNotificationMessage__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12912 PyObject *resultobj = 0;
12916 PyObject * obj0 = 0 ;
12919 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpNotificationMessage",&obj0)) SWIG_fail;
12920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpNotificationMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpNotificationMessage, SWIG_POINTER_NEW | 0 );
12933 SWIGINTERN PyObject *_wrap_new_BgpNotificationMessage__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
12934 PyObject *resultobj = 0;
12938 uint8_t *arg4 = (uint8_t *) 0 ;
12942 unsigned char val2 ;
12944 unsigned char val3 ;
12948 unsigned short val5 ;
12950 PyObject * obj0 = 0 ;
12951 PyObject * obj1 = 0 ;
12952 PyObject * obj2 = 0 ;
12953 PyObject * obj3 = 0 ;
12954 PyObject * obj4 = 0 ;
12957 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_BgpNotificationMessage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
12959 if (!SWIG_IsOK(res1)) {
12960 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpNotificationMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
12963 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
12964 if (!SWIG_IsOK(ecode2)) {
12965 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpNotificationMessage" "', argument " "2"" of type '" "uint8_t""'");
12967 arg2 =
static_cast< uint8_t
>(val2);
12968 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
12969 if (!SWIG_IsOK(ecode3)) {
12970 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpNotificationMessage" "', argument " "3"" of type '" "uint8_t""'");
12972 arg3 =
static_cast< uint8_t
>(val3);
12973 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
12974 if (!SWIG_IsOK(res4)) {
12975 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_BgpNotificationMessage" "', argument " "4"" of type '" "uint8_t const *""'");
12977 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
12978 ecode5 = SWIG_AsVal_unsigned_SS_short(obj4, &val5);
12979 if (!SWIG_IsOK(ecode5)) {
12980 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_BgpNotificationMessage" "', argument " "5"" of type '" "uint16_t""'");
12982 arg5 =
static_cast< uint16_t
>(val5);
12984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpNotificationMessage, SWIG_POINTER_NEW | 0 );
12991 SWIGINTERN PyObject *_wrap_new_BgpNotificationMessage(PyObject *
self, PyObject *args) {
12993 PyObject *argv[6] = {
12998 if (!PyTuple_Check(args)) SWIG_fail;
12999 argc = args ? PyObject_Length(args) : 0;
13000 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
13001 argv[ii] = PyTuple_GET_ITEM(args,ii);
13006 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
13007 _v = SWIG_CheckState(res);
13009 return _wrap_new_BgpNotificationMessage__SWIG_0(
self, args);
13015 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
13016 _v = SWIG_CheckState(res);
13019 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
13020 _v = SWIG_CheckState(res);
13024 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
13025 _v = SWIG_CheckState(res);
13029 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
13030 _v = SWIG_CheckState(res);
13033 int res = SWIG_AsVal_unsigned_SS_short(argv[4], NULL);
13034 _v = SWIG_CheckState(res);
13037 return _wrap_new_BgpNotificationMessage__SWIG_1(
self, args);
13046 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpNotificationMessage'.\n" 13047 " Possible C/C++ prototypes are:\n" 13048 " libbgp::BgpNotificationMessage::BgpNotificationMessage(libbgp::BgpLogHandler *)\n" 13049 " libbgp::BgpNotificationMessage::BgpNotificationMessage(libbgp::BgpLogHandler *,uint8_t,uint8_t,uint8_t const *,uint16_t)\n");
13054 SWIGINTERN PyObject *_wrap_delete_BgpNotificationMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13055 PyObject *resultobj = 0;
13059 PyObject * obj0 = 0 ;
13061 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpNotificationMessage",&obj0)) SWIG_fail;
13062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, SWIG_POINTER_DISOWN | 0 );
13063 if (!SWIG_IsOK(res1)) {
13064 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpNotificationMessage" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13068 resultobj = SWIG_Py_Void();
13075 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_errcode_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13076 PyObject *resultobj = 0;
13081 unsigned char val2 ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13086 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpNotificationMessage_errcode_set",&obj0,&obj1)) SWIG_fail;
13087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13088 if (!SWIG_IsOK(res1)) {
13089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_errcode_set" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13092 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
13093 if (!SWIG_IsOK(ecode2)) {
13094 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpNotificationMessage_errcode_set" "', argument " "2"" of type '" "uint8_t""'");
13096 arg2 =
static_cast< uint8_t
>(val2);
13097 if (arg1) (arg1)->errcode = arg2;
13098 resultobj = SWIG_Py_Void();
13105 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_errcode_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13106 PyObject *resultobj = 0;
13110 PyObject * obj0 = 0 ;
13113 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpNotificationMessage_errcode_get",&obj0)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_errcode_get" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13119 result = (uint8_t) ((arg1)->errcode);
13120 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
13127 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_subcode_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13128 PyObject *resultobj = 0;
13133 unsigned char val2 ;
13135 PyObject * obj0 = 0 ;
13136 PyObject * obj1 = 0 ;
13138 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpNotificationMessage_subcode_set",&obj0,&obj1)) SWIG_fail;
13139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13140 if (!SWIG_IsOK(res1)) {
13141 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_subcode_set" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13144 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
13145 if (!SWIG_IsOK(ecode2)) {
13146 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpNotificationMessage_subcode_set" "', argument " "2"" of type '" "uint8_t""'");
13148 arg2 =
static_cast< uint8_t
>(val2);
13149 if (arg1) (arg1)->subcode = arg2;
13150 resultobj = SWIG_Py_Void();
13157 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_subcode_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13158 PyObject *resultobj = 0;
13162 PyObject * obj0 = 0 ;
13165 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpNotificationMessage_subcode_get",&obj0)) SWIG_fail;
13166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13167 if (!SWIG_IsOK(res1)) {
13168 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_subcode_get" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13171 result = (uint8_t) ((arg1)->subcode);
13172 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
13179 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_data_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13180 PyObject *resultobj = 0;
13182 uint8_t *arg2 = (uint8_t *) 0 ;
13187 PyObject * obj0 = 0 ;
13188 PyObject * obj1 = 0 ;
13190 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpNotificationMessage_data_set",&obj0,&obj1)) SWIG_fail;
13191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13192 if (!SWIG_IsOK(res1)) {
13193 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_data_set" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13196 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
13197 if (!SWIG_IsOK(res2)) {
13198 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpNotificationMessage_data_set" "', argument " "2"" of type '" "uint8_t *""'");
13200 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
13201 if (arg1) (arg1)->data = arg2;
13202 resultobj = SWIG_Py_Void();
13209 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_data_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13210 PyObject *resultobj = 0;
13214 PyObject * obj0 = 0 ;
13215 uint8_t *result = 0 ;
13217 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpNotificationMessage_data_get",&obj0)) SWIG_fail;
13218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13219 if (!SWIG_IsOK(res1)) {
13220 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_data_get" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13223 result = (uint8_t *) ((arg1)->data);
13224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
13231 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_data_len_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13232 PyObject *resultobj = 0;
13237 unsigned short val2 ;
13239 PyObject * obj0 = 0 ;
13240 PyObject * obj1 = 0 ;
13242 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpNotificationMessage_data_len_set",&obj0,&obj1)) SWIG_fail;
13243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13244 if (!SWIG_IsOK(res1)) {
13245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_data_len_set" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13248 ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
13249 if (!SWIG_IsOK(ecode2)) {
13250 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpNotificationMessage_data_len_set" "', argument " "2"" of type '" "uint16_t""'");
13252 arg2 =
static_cast< uint16_t
>(val2);
13253 if (arg1) (arg1)->data_len = arg2;
13254 resultobj = SWIG_Py_Void();
13261 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_data_len_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13262 PyObject *resultobj = 0;
13266 PyObject * obj0 = 0 ;
13269 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpNotificationMessage_data_len_get",&obj0)) SWIG_fail;
13270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13271 if (!SWIG_IsOK(res1)) {
13272 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_data_len_get" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13275 result = (uint16_t) ((arg1)->data_len);
13276 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
13283 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13284 PyObject *resultobj = 0;
13287 uint8_t **arg3 = (uint8_t **) 0 ;
13288 size_t *arg4 = (
size_t *) 0 ;
13297 PyObject * obj0 = 0 ;
13298 PyObject * obj1 = 0 ;
13299 PyObject * obj2 = 0 ;
13300 PyObject * obj3 = 0 ;
13303 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpNotificationMessage_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13305 if (!SWIG_IsOK(res1)) {
13306 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_doPrint" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage const *""'");
13309 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
13310 if (!SWIG_IsOK(ecode2)) {
13311 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpNotificationMessage_doPrint" "', argument " "2"" of type '" "size_t""'");
13313 arg2 =
static_cast< size_t >(val2);
13314 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
13315 if (!SWIG_IsOK(res3)) {
13316 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpNotificationMessage_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
13318 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
13319 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
13320 if (!SWIG_IsOK(res4)) {
13321 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpNotificationMessage_doPrint" "', argument " "4"" of type '" "size_t *""'");
13323 arg4 =
reinterpret_cast< size_t *
>(argp4);
13325 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
13332 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13333 PyObject *resultobj = 0;
13335 uint8_t *arg2 = (uint8_t *) 0 ;
13343 PyObject * obj0 = 0 ;
13344 PyObject * obj1 = 0 ;
13345 PyObject * obj2 = 0 ;
13348 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpNotificationMessage_parse",&obj0,&obj1,&obj2)) SWIG_fail;
13349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13350 if (!SWIG_IsOK(res1)) {
13351 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_parse" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage *""'");
13354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
13355 if (!SWIG_IsOK(res2)) {
13356 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpNotificationMessage_parse" "', argument " "2"" of type '" "uint8_t const *""'");
13358 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
13359 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
13360 if (!SWIG_IsOK(ecode3)) {
13361 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpNotificationMessage_parse" "', argument " "3"" of type '" "size_t""'");
13363 arg3 =
static_cast< size_t >(val3);
13364 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
13365 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
13372 SWIGINTERN PyObject *_wrap_BgpNotificationMessage_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13373 PyObject *resultobj = 0;
13375 uint8_t *arg2 = (uint8_t *) 0 ;
13383 PyObject * obj0 = 0 ;
13384 PyObject * obj1 = 0 ;
13385 PyObject * obj2 = 0 ;
13388 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpNotificationMessage_write",&obj0,&obj1,&obj2)) SWIG_fail;
13389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpNotificationMessage, 0 | 0 );
13390 if (!SWIG_IsOK(res1)) {
13391 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpNotificationMessage_write" "', argument " "1"" of type '" "libbgp::BgpNotificationMessage const *""'");
13394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
13395 if (!SWIG_IsOK(res2)) {
13396 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpNotificationMessage_write" "', argument " "2"" of type '" "uint8_t *""'");
13398 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
13399 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
13400 if (!SWIG_IsOK(ecode3)) {
13401 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpNotificationMessage_write" "', argument " "3"" of type '" "size_t""'");
13403 arg3 =
static_cast< size_t >(val3);
13405 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
13412 SWIGINTERN PyObject *BgpNotificationMessage_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13414 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
13415 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpNotificationMessage, SWIG_NewClientData(obj));
13416 return SWIG_Py_Void();
13419 SWIGINTERN PyObject *_wrap_new_BgpOpenMessage__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13420 PyObject *resultobj = 0;
13427 PyObject * obj0 = 0 ;
13428 PyObject * obj1 = 0 ;
13431 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpOpenMessage",&obj0,&obj1)) SWIG_fail;
13432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
13433 if (!SWIG_IsOK(res1)) {
13434 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpOpenMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
13437 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13438 if (!SWIG_IsOK(ecode2)) {
13439 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpOpenMessage" "', argument " "2"" of type '" "bool""'");
13441 arg2 =
static_cast< bool >(val2);
13443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpOpenMessage, SWIG_POINTER_NEW | 0 );
13450 SWIGINTERN PyObject *_wrap_new_BgpOpenMessage__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13451 PyObject *resultobj = 0;
13461 unsigned short val3 ;
13463 unsigned short val4 ;
13465 unsigned int val5 ;
13467 PyObject * obj0 = 0 ;
13468 PyObject * obj1 = 0 ;
13469 PyObject * obj2 = 0 ;
13470 PyObject * obj3 = 0 ;
13471 PyObject * obj4 = 0 ;
13474 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_BgpOpenMessage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
13476 if (!SWIG_IsOK(res1)) {
13477 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpOpenMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
13480 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13481 if (!SWIG_IsOK(ecode2)) {
13482 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpOpenMessage" "', argument " "2"" of type '" "bool""'");
13484 arg2 =
static_cast< bool >(val2);
13485 ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3);
13486 if (!SWIG_IsOK(ecode3)) {
13487 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpOpenMessage" "', argument " "3"" of type '" "uint16_t""'");
13489 arg3 =
static_cast< uint16_t
>(val3);
13490 ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4);
13491 if (!SWIG_IsOK(ecode4)) {
13492 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_BgpOpenMessage" "', argument " "4"" of type '" "uint16_t""'");
13494 arg4 =
static_cast< uint16_t
>(val4);
13495 ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
13496 if (!SWIG_IsOK(ecode5)) {
13497 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_BgpOpenMessage" "', argument " "5"" of type '" "uint32_t""'");
13499 arg5 =
static_cast< uint32_t
>(val5);
13501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpOpenMessage, SWIG_POINTER_NEW | 0 );
13508 SWIGINTERN PyObject *_wrap_new_BgpOpenMessage__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13509 PyObject *resultobj = 0;
13514 char *arg5 = (
char *) 0 ;
13519 unsigned short val3 ;
13521 unsigned short val4 ;
13526 PyObject * obj0 = 0 ;
13527 PyObject * obj1 = 0 ;
13528 PyObject * obj2 = 0 ;
13529 PyObject * obj3 = 0 ;
13530 PyObject * obj4 = 0 ;
13533 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_BgpOpenMessage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
13535 if (!SWIG_IsOK(res1)) {
13536 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpOpenMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
13539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13540 if (!SWIG_IsOK(ecode2)) {
13541 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpOpenMessage" "', argument " "2"" of type '" "bool""'");
13543 arg2 =
static_cast< bool >(val2);
13544 ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3);
13545 if (!SWIG_IsOK(ecode3)) {
13546 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpOpenMessage" "', argument " "3"" of type '" "uint16_t""'");
13548 arg3 =
static_cast< uint16_t
>(val3);
13549 ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4);
13550 if (!SWIG_IsOK(ecode4)) {
13551 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "new_BgpOpenMessage" "', argument " "4"" of type '" "uint16_t""'");
13553 arg4 =
static_cast< uint16_t
>(val4);
13554 res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
13555 if (!SWIG_IsOK(res5)) {
13556 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "new_BgpOpenMessage" "', argument " "5"" of type '" "char const *""'");
13558 arg5 =
reinterpret_cast< char *
>(buf5);
13560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpOpenMessage, SWIG_POINTER_NEW | 0 );
13561 if (alloc5 == SWIG_NEWOBJ)
delete[] buf5;
13564 if (alloc5 == SWIG_NEWOBJ)
delete[] buf5;
13569 SWIGINTERN PyObject *_wrap_new_BgpOpenMessage(PyObject *
self, PyObject *args) {
13571 PyObject *argv[6] = {
13576 if (!PyTuple_Check(args)) SWIG_fail;
13577 argc = args ? PyObject_Length(args) : 0;
13578 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
13579 argv[ii] = PyTuple_GET_ITEM(args,ii);
13584 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
13585 _v = SWIG_CheckState(res);
13588 int res = SWIG_AsVal_bool(argv[1], NULL);
13589 _v = SWIG_CheckState(res);
13592 return _wrap_new_BgpOpenMessage__SWIG_0(
self, args);
13599 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
13600 _v = SWIG_CheckState(res);
13603 int res = SWIG_AsVal_bool(argv[1], NULL);
13604 _v = SWIG_CheckState(res);
13608 int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
13609 _v = SWIG_CheckState(res);
13613 int res = SWIG_AsVal_unsigned_SS_short(argv[3], NULL);
13614 _v = SWIG_CheckState(res);
13618 int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
13619 _v = SWIG_CheckState(res);
13622 return _wrap_new_BgpOpenMessage__SWIG_1(
self, args);
13632 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
13633 _v = SWIG_CheckState(res);
13636 int res = SWIG_AsVal_bool(argv[1], NULL);
13637 _v = SWIG_CheckState(res);
13641 int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
13642 _v = SWIG_CheckState(res);
13646 int res = SWIG_AsVal_unsigned_SS_short(argv[3], NULL);
13647 _v = SWIG_CheckState(res);
13650 int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0);
13651 _v = SWIG_CheckState(res);
13653 return _wrap_new_BgpOpenMessage__SWIG_2(
self, args);
13662 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpOpenMessage'.\n" 13663 " Possible C/C++ prototypes are:\n" 13664 " libbgp::BgpOpenMessage::BgpOpenMessage(libbgp::BgpLogHandler *,bool)\n" 13665 " libbgp::BgpOpenMessage::BgpOpenMessage(libbgp::BgpLogHandler *,bool,uint16_t,uint16_t,uint32_t)\n" 13666 " libbgp::BgpOpenMessage::BgpOpenMessage(libbgp::BgpLogHandler *,bool,uint16_t,uint16_t,char const *)\n");
13671 SWIGINTERN PyObject *_wrap_delete_BgpOpenMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13672 PyObject *resultobj = 0;
13676 PyObject * obj0 = 0 ;
13678 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpOpenMessage",&obj0)) SWIG_fail;
13679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, SWIG_POINTER_DISOWN | 0 );
13680 if (!SWIG_IsOK(res1)) {
13681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpOpenMessage" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13685 resultobj = SWIG_Py_Void();
13692 SWIGINTERN PyObject *_wrap_BgpOpenMessage_version_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13693 PyObject *resultobj = 0;
13698 unsigned char val2 ;
13700 PyObject * obj0 = 0 ;
13701 PyObject * obj1 = 0 ;
13703 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_version_set",&obj0,&obj1)) SWIG_fail;
13704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13705 if (!SWIG_IsOK(res1)) {
13706 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_version_set" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13709 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
13710 if (!SWIG_IsOK(ecode2)) {
13711 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_version_set" "', argument " "2"" of type '" "uint8_t""'");
13713 arg2 =
static_cast< uint8_t
>(val2);
13714 if (arg1) (arg1)->version = arg2;
13715 resultobj = SWIG_Py_Void();
13722 SWIGINTERN PyObject *_wrap_BgpOpenMessage_version_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13723 PyObject *resultobj = 0;
13727 PyObject * obj0 = 0 ;
13730 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpOpenMessage_version_get",&obj0)) SWIG_fail;
13731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13732 if (!SWIG_IsOK(res1)) {
13733 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_version_get" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13736 result = (uint8_t) ((arg1)->version);
13737 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
13744 SWIGINTERN PyObject *_wrap_BgpOpenMessage_my_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13745 PyObject *resultobj = 0;
13750 unsigned short val2 ;
13752 PyObject * obj0 = 0 ;
13753 PyObject * obj1 = 0 ;
13755 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_my_asn_set",&obj0,&obj1)) SWIG_fail;
13756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13757 if (!SWIG_IsOK(res1)) {
13758 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_my_asn_set" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13761 ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
13762 if (!SWIG_IsOK(ecode2)) {
13763 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_my_asn_set" "', argument " "2"" of type '" "uint16_t""'");
13765 arg2 =
static_cast< uint16_t
>(val2);
13766 if (arg1) (arg1)->my_asn = arg2;
13767 resultobj = SWIG_Py_Void();
13774 SWIGINTERN PyObject *_wrap_BgpOpenMessage_my_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13775 PyObject *resultobj = 0;
13779 PyObject * obj0 = 0 ;
13782 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpOpenMessage_my_asn_get",&obj0)) SWIG_fail;
13783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13784 if (!SWIG_IsOK(res1)) {
13785 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_my_asn_get" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13788 result = (uint16_t) ((arg1)->my_asn);
13789 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
13796 SWIGINTERN PyObject *_wrap_BgpOpenMessage_hold_time_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13797 PyObject *resultobj = 0;
13802 unsigned short val2 ;
13804 PyObject * obj0 = 0 ;
13805 PyObject * obj1 = 0 ;
13807 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_hold_time_set",&obj0,&obj1)) SWIG_fail;
13808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13809 if (!SWIG_IsOK(res1)) {
13810 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_hold_time_set" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13813 ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
13814 if (!SWIG_IsOK(ecode2)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_hold_time_set" "', argument " "2"" of type '" "uint16_t""'");
13817 arg2 =
static_cast< uint16_t
>(val2);
13818 if (arg1) (arg1)->hold_time = arg2;
13819 resultobj = SWIG_Py_Void();
13826 SWIGINTERN PyObject *_wrap_BgpOpenMessage_hold_time_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13827 PyObject *resultobj = 0;
13831 PyObject * obj0 = 0 ;
13834 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpOpenMessage_hold_time_get",&obj0)) SWIG_fail;
13835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13836 if (!SWIG_IsOK(res1)) {
13837 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_hold_time_get" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13840 result = (uint16_t) ((arg1)->hold_time);
13841 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
13848 SWIGINTERN PyObject *_wrap_BgpOpenMessage_bgp_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13849 PyObject *resultobj = 0;
13854 unsigned int val2 ;
13856 PyObject * obj0 = 0 ;
13857 PyObject * obj1 = 0 ;
13859 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_bgp_id_set",&obj0,&obj1)) SWIG_fail;
13860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13861 if (!SWIG_IsOK(res1)) {
13862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_bgp_id_set" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13865 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
13866 if (!SWIG_IsOK(ecode2)) {
13867 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_bgp_id_set" "', argument " "2"" of type '" "uint32_t""'");
13869 arg2 =
static_cast< uint32_t
>(val2);
13870 if (arg1) (arg1)->bgp_id = arg2;
13871 resultobj = SWIG_Py_Void();
13878 SWIGINTERN PyObject *_wrap_BgpOpenMessage_bgp_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13879 PyObject *resultobj = 0;
13883 PyObject * obj0 = 0 ;
13886 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpOpenMessage_bgp_id_get",&obj0)) SWIG_fail;
13887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13888 if (!SWIG_IsOK(res1)) {
13889 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_bgp_id_get" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13892 result = (uint32_t) ((arg1)->bgp_id);
13893 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
13900 SWIGINTERN PyObject *_wrap_BgpOpenMessage_setAsn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13901 PyObject *resultobj = 0;
13906 unsigned int val2 ;
13908 PyObject * obj0 = 0 ;
13909 PyObject * obj1 = 0 ;
13912 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_setAsn",&obj0,&obj1)) SWIG_fail;
13913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13914 if (!SWIG_IsOK(res1)) {
13915 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_setAsn" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
13918 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
13919 if (!SWIG_IsOK(ecode2)) {
13920 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_setAsn" "', argument " "2"" of type '" "uint32_t""'");
13922 arg2 =
static_cast< uint32_t
>(val2);
13923 result = (bool)(arg1)->setAsn(arg2);
13924 resultobj = SWIG_From_bool(static_cast< bool >(result));
13931 SWIGINTERN PyObject *_wrap_BgpOpenMessage_getAsn(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13932 PyObject *resultobj = 0;
13936 PyObject * obj0 = 0 ;
13939 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpOpenMessage_getAsn",&obj0)) SWIG_fail;
13940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13941 if (!SWIG_IsOK(res1)) {
13942 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_getAsn" "', argument " "1"" of type '" "libbgp::BgpOpenMessage const *""'");
13946 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
13953 SWIGINTERN PyObject *_wrap_BgpOpenMessage_hasCapability(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13954 PyObject *resultobj = 0;
13959 unsigned char val2 ;
13961 PyObject * obj0 = 0 ;
13962 PyObject * obj1 = 0 ;
13965 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_hasCapability",&obj0,&obj1)) SWIG_fail;
13966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13967 if (!SWIG_IsOK(res1)) {
13968 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_hasCapability" "', argument " "1"" of type '" "libbgp::BgpOpenMessage const *""'");
13971 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
13972 if (!SWIG_IsOK(ecode2)) {
13973 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_hasCapability" "', argument " "2"" of type '" "uint8_t""'");
13975 arg2 =
static_cast< uint8_t
>(val2);
13977 resultobj = SWIG_From_bool(static_cast< bool >(result));
13984 SWIGINTERN PyObject *_wrap_BgpOpenMessage_addCapability(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
13985 PyObject *resultobj = 0;
13987 SwigValueWrapper< std::shared_ptr< libbgp::BgpCapability > > arg2 ;
13992 PyObject * obj0 = 0 ;
13993 PyObject * obj1 = 0 ;
13996 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpOpenMessage_addCapability",&obj0,&obj1)) SWIG_fail;
13997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
13998 if (!SWIG_IsOK(res1)) {
13999 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_addCapability" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
14003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_libbgp__BgpCapability_t, 0 | 0);
14004 if (!SWIG_IsOK(res2)) {
14005 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpOpenMessage_addCapability" "', argument " "2"" of type '" "std::shared_ptr< libbgp::BgpCapability >""'");
14008 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpOpenMessage_addCapability" "', argument " "2"" of type '" "std::shared_ptr< libbgp::BgpCapability >""'");
14010 std::shared_ptr< libbgp::BgpCapability > * temp =
reinterpret_cast< std::shared_ptr< libbgp::BgpCapability > *
>(argp2);
14012 if (SWIG_IsNewObj(res2))
delete temp;
14015 result = (bool)(arg1)->addCapability(arg2);
14016 resultobj = SWIG_From_bool(static_cast< bool >(result));
14023 SWIGINTERN PyObject *_wrap_BgpOpenMessage_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14024 PyObject *resultobj = 0;
14027 uint8_t **arg3 = (uint8_t **) 0 ;
14028 size_t *arg4 = (
size_t *) 0 ;
14037 PyObject * obj0 = 0 ;
14038 PyObject * obj1 = 0 ;
14039 PyObject * obj2 = 0 ;
14040 PyObject * obj3 = 0 ;
14043 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpOpenMessage_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
14045 if (!SWIG_IsOK(res1)) {
14046 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_doPrint" "', argument " "1"" of type '" "libbgp::BgpOpenMessage const *""'");
14049 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14050 if (!SWIG_IsOK(ecode2)) {
14051 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOpenMessage_doPrint" "', argument " "2"" of type '" "size_t""'");
14053 arg2 =
static_cast< size_t >(val2);
14054 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
14055 if (!SWIG_IsOK(res3)) {
14056 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpOpenMessage_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
14058 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
14059 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
14060 if (!SWIG_IsOK(res4)) {
14061 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpOpenMessage_doPrint" "', argument " "4"" of type '" "size_t *""'");
14063 arg4 =
reinterpret_cast< size_t *
>(argp4);
14065 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
14072 SWIGINTERN PyObject *_wrap_BgpOpenMessage_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14073 PyObject *resultobj = 0;
14075 uint8_t *arg2 = (uint8_t *) 0 ;
14083 PyObject * obj0 = 0 ;
14084 PyObject * obj1 = 0 ;
14085 PyObject * obj2 = 0 ;
14088 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpOpenMessage_parse",&obj0,&obj1,&obj2)) SWIG_fail;
14089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
14090 if (!SWIG_IsOK(res1)) {
14091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_parse" "', argument " "1"" of type '" "libbgp::BgpOpenMessage *""'");
14094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14095 if (!SWIG_IsOK(res2)) {
14096 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpOpenMessage_parse" "', argument " "2"" of type '" "uint8_t const *""'");
14098 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14099 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14100 if (!SWIG_IsOK(ecode3)) {
14101 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpOpenMessage_parse" "', argument " "3"" of type '" "size_t""'");
14103 arg3 =
static_cast< size_t >(val3);
14104 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
14105 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
14112 SWIGINTERN PyObject *_wrap_BgpOpenMessage_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14113 PyObject *resultobj = 0;
14115 uint8_t *arg2 = (uint8_t *) 0 ;
14123 PyObject * obj0 = 0 ;
14124 PyObject * obj1 = 0 ;
14125 PyObject * obj2 = 0 ;
14128 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpOpenMessage_write",&obj0,&obj1,&obj2)) SWIG_fail;
14129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
14130 if (!SWIG_IsOK(res1)) {
14131 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_write" "', argument " "1"" of type '" "libbgp::BgpOpenMessage const *""'");
14134 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14135 if (!SWIG_IsOK(res2)) {
14136 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpOpenMessage_write" "', argument " "2"" of type '" "uint8_t *""'");
14138 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14139 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14140 if (!SWIG_IsOK(ecode3)) {
14141 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpOpenMessage_write" "', argument " "3"" of type '" "size_t""'");
14143 arg3 =
static_cast< size_t >(val3);
14145 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
14152 SWIGINTERN PyObject *_wrap_BgpOpenMessage_getCapabilities(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14153 PyObject *resultobj = 0;
14157 PyObject * obj0 = 0 ;
14158 std::vector< std::shared_ptr< libbgp::BgpCapability > > *result = 0 ;
14160 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpOpenMessage_getCapabilities",&obj0)) SWIG_fail;
14161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOpenMessage, 0 | 0 );
14162 if (!SWIG_IsOK(res1)) {
14163 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOpenMessage_getCapabilities" "', argument " "1"" of type '" "libbgp::BgpOpenMessage const *""'");
14166 result = (std::vector< std::shared_ptr< libbgp::BgpCapability > > *) &((
libbgp::BgpOpenMessage const *)arg1)->getCapabilities();
14167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t, 0 | 0 );
14174 SWIGINTERN PyObject *BgpOpenMessage_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14176 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
14177 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpOpenMessage, SWIG_NewClientData(obj));
14178 return SWIG_Py_Void();
14181 SWIGINTERN PyObject *_wrap_BgpOutHandler_handleOut(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14182 PyObject *resultobj = 0;
14184 uint8_t *arg2 = (uint8_t *) 0 ;
14192 PyObject * obj0 = 0 ;
14193 PyObject * obj1 = 0 ;
14194 PyObject * obj2 = 0 ;
14197 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpOutHandler_handleOut",&obj0,&obj1,&obj2)) SWIG_fail;
14198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOutHandler, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOutHandler_handleOut" "', argument " "1"" of type '" "libbgp::BgpOutHandler *""'");
14203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14204 if (!SWIG_IsOK(res2)) {
14205 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpOutHandler_handleOut" "', argument " "2"" of type '" "uint8_t const *""'");
14207 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14208 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14209 if (!SWIG_IsOK(ecode3)) {
14210 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpOutHandler_handleOut" "', argument " "3"" of type '" "size_t""'");
14212 arg3 =
static_cast< size_t >(val3);
14213 result = (bool)(arg1)->handleOut((uint8_t
const *)arg2,arg3);
14214 resultobj = SWIG_From_bool(static_cast< bool >(result));
14221 SWIGINTERN PyObject *_wrap_BgpOutHandler_notifyStateChange(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14222 PyObject *resultobj = 0;
14232 PyObject * obj0 = 0 ;
14233 PyObject * obj1 = 0 ;
14234 PyObject * obj2 = 0 ;
14236 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpOutHandler_notifyStateChange",&obj0,&obj1,&obj2)) SWIG_fail;
14237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOutHandler, 0 | 0 );
14238 if (!SWIG_IsOK(res1)) {
14239 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpOutHandler_notifyStateChange" "', argument " "1"" of type '" "libbgp::BgpOutHandler *""'");
14242 ecode2 = SWIG_AsVal_int(obj1, &val2);
14243 if (!SWIG_IsOK(ecode2)) {
14244 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpOutHandler_notifyStateChange" "', argument " "2"" of type '" "int""'");
14246 arg2 =
static_cast< int >(val2);
14247 ecode3 = SWIG_AsVal_int(obj2, &val3);
14248 if (!SWIG_IsOK(ecode3)) {
14249 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpOutHandler_notifyStateChange" "', argument " "3"" of type '" "int""'");
14251 arg3 =
static_cast< int >(val3);
14252 (arg1)->notifyStateChange(arg2,arg3);
14253 resultobj = SWIG_Py_Void();
14260 SWIGINTERN PyObject *_wrap_delete_BgpOutHandler(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14261 PyObject *resultobj = 0;
14265 PyObject * obj0 = 0 ;
14267 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpOutHandler",&obj0)) SWIG_fail;
14268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpOutHandler, SWIG_POINTER_DISOWN | 0 );
14269 if (!SWIG_IsOK(res1)) {
14270 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpOutHandler" "', argument " "1"" of type '" "libbgp::BgpOutHandler *""'");
14274 resultobj = SWIG_Py_Void();
14281 SWIGINTERN PyObject *BgpOutHandler_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14283 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
14284 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpOutHandler, SWIG_NewClientData(obj));
14285 return SWIG_Py_Void();
14288 SWIGINTERN PyObject *_wrap_new_FdOutHandler(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14289 PyObject *resultobj = 0;
14293 PyObject * obj0 = 0 ;
14296 if (!PyArg_ParseTuple(args,(
char *)
"O:new_FdOutHandler",&obj0)) SWIG_fail;
14297 ecode1 = SWIG_AsVal_int(obj0, &val1);
14298 if (!SWIG_IsOK(ecode1)) {
14299 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_FdOutHandler" "', argument " "1"" of type '" "int""'");
14301 arg1 =
static_cast< int >(val1);
14303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__FdOutHandler, SWIG_POINTER_NEW | 0 );
14310 SWIGINTERN PyObject *_wrap_FdOutHandler_handleOut(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14311 PyObject *resultobj = 0;
14313 uint8_t *arg2 = (uint8_t *) 0 ;
14321 PyObject * obj0 = 0 ;
14322 PyObject * obj1 = 0 ;
14323 PyObject * obj2 = 0 ;
14326 if (!PyArg_ParseTuple(args,(
char *)
"OOO:FdOutHandler_handleOut",&obj0,&obj1,&obj2)) SWIG_fail;
14327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__FdOutHandler, 0 | 0 );
14328 if (!SWIG_IsOK(res1)) {
14329 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "FdOutHandler_handleOut" "', argument " "1"" of type '" "libbgp::FdOutHandler *""'");
14332 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14333 if (!SWIG_IsOK(res2)) {
14334 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "FdOutHandler_handleOut" "', argument " "2"" of type '" "uint8_t const *""'");
14336 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14337 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14338 if (!SWIG_IsOK(ecode3)) {
14339 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "FdOutHandler_handleOut" "', argument " "3"" of type '" "size_t""'");
14341 arg3 =
static_cast< size_t >(val3);
14342 result = (bool)(arg1)->handleOut((uint8_t
const *)arg2,arg3);
14343 resultobj = SWIG_From_bool(static_cast< bool >(result));
14350 SWIGINTERN PyObject *_wrap_delete_FdOutHandler(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14351 PyObject *resultobj = 0;
14355 PyObject * obj0 = 0 ;
14357 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_FdOutHandler",&obj0)) SWIG_fail;
14358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__FdOutHandler, SWIG_POINTER_DISOWN | 0 );
14359 if (!SWIG_IsOK(res1)) {
14360 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_FdOutHandler" "', argument " "1"" of type '" "libbgp::FdOutHandler *""'");
14364 resultobj = SWIG_Py_Void();
14371 SWIGINTERN PyObject *FdOutHandler_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14373 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
14374 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__FdOutHandler, SWIG_NewClientData(obj));
14375 return SWIG_Py_Void();
14378 SWIGINTERN PyObject *_wrap_new_BgpPacket__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14379 PyObject *resultobj = 0;
14389 PyObject * obj0 = 0 ;
14390 PyObject * obj1 = 0 ;
14391 PyObject * obj2 = 0 ;
14394 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpPacket",&obj0,&obj1,&obj2)) SWIG_fail;
14395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
14396 if (!SWIG_IsOK(res1)) {
14397 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPacket" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
14400 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14401 if (!SWIG_IsOK(ecode2)) {
14402 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpPacket" "', argument " "2"" of type '" "bool""'");
14404 arg2 =
static_cast< bool >(val2);
14405 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_libbgp__BgpMessage, 0 | 0 );
14406 if (!SWIG_IsOK(res3)) {
14407 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_BgpPacket" "', argument " "3"" of type '" "libbgp::BgpMessage const *""'");
14411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPacket, SWIG_POINTER_NEW | 0 );
14418 SWIGINTERN PyObject *_wrap_new_BgpPacket__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14419 PyObject *resultobj = 0;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14430 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpPacket",&obj0,&obj1)) SWIG_fail;
14431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
14432 if (!SWIG_IsOK(res1)) {
14433 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPacket" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
14436 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14437 if (!SWIG_IsOK(ecode2)) {
14438 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpPacket" "', argument " "2"" of type '" "bool""'");
14440 arg2 =
static_cast< bool >(val2);
14442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPacket, SWIG_POINTER_NEW | 0 );
14449 SWIGINTERN PyObject *_wrap_new_BgpPacket(PyObject *
self, PyObject *args) {
14451 PyObject *argv[4] = {
14456 if (!PyTuple_Check(args)) SWIG_fail;
14457 argc = args ? PyObject_Length(args) : 0;
14458 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14459 argv[ii] = PyTuple_GET_ITEM(args,ii);
14464 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
14465 _v = SWIG_CheckState(res);
14468 int res = SWIG_AsVal_bool(argv[1], NULL);
14469 _v = SWIG_CheckState(res);
14472 return _wrap_new_BgpPacket__SWIG_1(
self, args);
14479 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
14480 _v = SWIG_CheckState(res);
14483 int res = SWIG_AsVal_bool(argv[1], NULL);
14484 _v = SWIG_CheckState(res);
14488 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_libbgp__BgpMessage, 0);
14489 _v = SWIG_CheckState(res);
14491 return _wrap_new_BgpPacket__SWIG_0(
self, args);
14498 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpPacket'.\n" 14499 " Possible C/C++ prototypes are:\n" 14500 " libbgp::BgpPacket::BgpPacket(libbgp::BgpLogHandler *,bool,libbgp::BgpMessage const *)\n" 14501 " libbgp::BgpPacket::BgpPacket(libbgp::BgpLogHandler *,bool)\n");
14506 SWIGINTERN PyObject *_wrap_delete_BgpPacket(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14507 PyObject *resultobj = 0;
14511 PyObject * obj0 = 0 ;
14513 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPacket",&obj0)) SWIG_fail;
14514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPacket, SWIG_POINTER_DISOWN | 0 );
14515 if (!SWIG_IsOK(res1)) {
14516 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPacket" "', argument " "1"" of type '" "libbgp::BgpPacket *""'");
14520 resultobj = SWIG_Py_Void();
14527 SWIGINTERN PyObject *_wrap_BgpPacket_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14528 PyObject *resultobj = 0;
14531 uint8_t **arg3 = (uint8_t **) 0 ;
14532 size_t *arg4 = (
size_t *) 0 ;
14541 PyObject * obj0 = 0 ;
14542 PyObject * obj1 = 0 ;
14543 PyObject * obj2 = 0 ;
14544 PyObject * obj3 = 0 ;
14547 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPacket_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPacket, 0 | 0 );
14549 if (!SWIG_IsOK(res1)) {
14550 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPacket_doPrint" "', argument " "1"" of type '" "libbgp::BgpPacket const *""'");
14553 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
14554 if (!SWIG_IsOK(ecode2)) {
14555 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPacket_doPrint" "', argument " "2"" of type '" "size_t""'");
14557 arg2 =
static_cast< size_t >(val2);
14558 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
14559 if (!SWIG_IsOK(res3)) {
14560 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPacket_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
14562 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
14563 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
14564 if (!SWIG_IsOK(res4)) {
14565 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPacket_doPrint" "', argument " "4"" of type '" "size_t *""'");
14567 arg4 =
reinterpret_cast< size_t *
>(argp4);
14569 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
14576 SWIGINTERN PyObject *_wrap_BgpPacket_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14577 PyObject *resultobj = 0;
14579 uint8_t *arg2 = (uint8_t *) 0 ;
14587 PyObject * obj0 = 0 ;
14588 PyObject * obj1 = 0 ;
14589 PyObject * obj2 = 0 ;
14592 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPacket_parse",&obj0,&obj1,&obj2)) SWIG_fail;
14593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPacket, 0 | 0 );
14594 if (!SWIG_IsOK(res1)) {
14595 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPacket_parse" "', argument " "1"" of type '" "libbgp::BgpPacket *""'");
14598 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14599 if (!SWIG_IsOK(res2)) {
14600 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPacket_parse" "', argument " "2"" of type '" "uint8_t const *""'");
14602 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14603 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14604 if (!SWIG_IsOK(ecode3)) {
14605 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPacket_parse" "', argument " "3"" of type '" "size_t""'");
14607 arg3 =
static_cast< size_t >(val3);
14608 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
14609 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
14616 SWIGINTERN PyObject *_wrap_BgpPacket_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14617 PyObject *resultobj = 0;
14619 uint8_t *arg2 = (uint8_t *) 0 ;
14627 PyObject * obj0 = 0 ;
14628 PyObject * obj1 = 0 ;
14629 PyObject * obj2 = 0 ;
14632 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPacket_write",&obj0,&obj1,&obj2)) SWIG_fail;
14633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPacket, 0 | 0 );
14634 if (!SWIG_IsOK(res1)) {
14635 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPacket_write" "', argument " "1"" of type '" "libbgp::BgpPacket const *""'");
14638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14639 if (!SWIG_IsOK(res2)) {
14640 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPacket_write" "', argument " "2"" of type '" "uint8_t *""'");
14642 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14643 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
14644 if (!SWIG_IsOK(ecode3)) {
14645 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPacket_write" "', argument " "3"" of type '" "size_t""'");
14647 arg3 =
static_cast< size_t >(val3);
14649 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
14656 SWIGINTERN PyObject *_wrap_BgpPacket_getMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14657 PyObject *resultobj = 0;
14661 PyObject * obj0 = 0 ;
14664 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPacket_getMessage",&obj0)) SWIG_fail;
14665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPacket, 0 | 0 );
14666 if (!SWIG_IsOK(res1)) {
14667 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPacket_getMessage" "', argument " "1"" of type '" "libbgp::BgpPacket const *""'");
14671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpMessage, 0 | 0 );
14678 SWIGINTERN PyObject *BgpPacket_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14680 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
14681 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPacket, SWIG_NewClientData(obj));
14682 return SWIG_Py_Void();
14685 SWIGINTERN PyObject *_wrap_BgpPathAttrib_optional_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14686 PyObject *resultobj = 0;
14693 PyObject * obj0 = 0 ;
14694 PyObject * obj1 = 0 ;
14696 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_optional_set",&obj0,&obj1)) SWIG_fail;
14697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14698 if (!SWIG_IsOK(res1)) {
14699 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_optional_set" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14702 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14703 if (!SWIG_IsOK(ecode2)) {
14704 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_optional_set" "', argument " "2"" of type '" "bool""'");
14706 arg2 =
static_cast< bool >(val2);
14707 if (arg1) (arg1)->optional = arg2;
14708 resultobj = SWIG_Py_Void();
14715 SWIGINTERN PyObject *_wrap_BgpPathAttrib_optional_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14716 PyObject *resultobj = 0;
14720 PyObject * obj0 = 0 ;
14723 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_optional_get",&obj0)) SWIG_fail;
14724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14725 if (!SWIG_IsOK(res1)) {
14726 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_optional_get" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14729 result = (bool) ((arg1)->optional);
14730 resultobj = SWIG_From_bool(static_cast< bool >(result));
14737 SWIGINTERN PyObject *_wrap_BgpPathAttrib_transitive_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14738 PyObject *resultobj = 0;
14745 PyObject * obj0 = 0 ;
14746 PyObject * obj1 = 0 ;
14748 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_transitive_set",&obj0,&obj1)) SWIG_fail;
14749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14750 if (!SWIG_IsOK(res1)) {
14751 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_transitive_set" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14754 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14755 if (!SWIG_IsOK(ecode2)) {
14756 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_transitive_set" "', argument " "2"" of type '" "bool""'");
14758 arg2 =
static_cast< bool >(val2);
14759 if (arg1) (arg1)->transitive = arg2;
14760 resultobj = SWIG_Py_Void();
14767 SWIGINTERN PyObject *_wrap_BgpPathAttrib_transitive_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14768 PyObject *resultobj = 0;
14772 PyObject * obj0 = 0 ;
14775 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_transitive_get",&obj0)) SWIG_fail;
14776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14777 if (!SWIG_IsOK(res1)) {
14778 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_transitive_get" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14781 result = (bool) ((arg1)->transitive);
14782 resultobj = SWIG_From_bool(static_cast< bool >(result));
14789 SWIGINTERN PyObject *_wrap_BgpPathAttrib_partial_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14790 PyObject *resultobj = 0;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14800 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_partial_set",&obj0,&obj1)) SWIG_fail;
14801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14802 if (!SWIG_IsOK(res1)) {
14803 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_partial_set" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14806 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14807 if (!SWIG_IsOK(ecode2)) {
14808 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_partial_set" "', argument " "2"" of type '" "bool""'");
14810 arg2 =
static_cast< bool >(val2);
14811 if (arg1) (arg1)->partial = arg2;
14812 resultobj = SWIG_Py_Void();
14819 SWIGINTERN PyObject *_wrap_BgpPathAttrib_partial_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14820 PyObject *resultobj = 0;
14824 PyObject * obj0 = 0 ;
14827 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_partial_get",&obj0)) SWIG_fail;
14828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14829 if (!SWIG_IsOK(res1)) {
14830 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_partial_get" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14833 result = (bool) ((arg1)->partial);
14834 resultobj = SWIG_From_bool(static_cast< bool >(result));
14841 SWIGINTERN PyObject *_wrap_BgpPathAttrib_extended_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14842 PyObject *resultobj = 0;
14849 PyObject * obj0 = 0 ;
14850 PyObject * obj1 = 0 ;
14852 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_extended_set",&obj0,&obj1)) SWIG_fail;
14853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14854 if (!SWIG_IsOK(res1)) {
14855 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_extended_set" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14858 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14859 if (!SWIG_IsOK(ecode2)) {
14860 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_extended_set" "', argument " "2"" of type '" "bool""'");
14862 arg2 =
static_cast< bool >(val2);
14863 if (arg1) (arg1)->extended = arg2;
14864 resultobj = SWIG_Py_Void();
14871 SWIGINTERN PyObject *_wrap_BgpPathAttrib_extended_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14872 PyObject *resultobj = 0;
14876 PyObject * obj0 = 0 ;
14879 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_extended_get",&obj0)) SWIG_fail;
14880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_extended_get" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14885 result = (bool) ((arg1)->extended);
14886 resultobj = SWIG_From_bool(static_cast< bool >(result));
14893 SWIGINTERN PyObject *_wrap_BgpPathAttrib_type_code_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14894 PyObject *resultobj = 0;
14899 unsigned char val2 ;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14904 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_type_code_set",&obj0,&obj1)) SWIG_fail;
14905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14906 if (!SWIG_IsOK(res1)) {
14907 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_type_code_set" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14910 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
14911 if (!SWIG_IsOK(ecode2)) {
14912 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_type_code_set" "', argument " "2"" of type '" "uint8_t""'");
14914 arg2 =
static_cast< uint8_t
>(val2);
14915 if (arg1) (arg1)->type_code = arg2;
14916 resultobj = SWIG_Py_Void();
14923 SWIGINTERN PyObject *_wrap_BgpPathAttrib_type_code_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14924 PyObject *resultobj = 0;
14928 PyObject * obj0 = 0 ;
14931 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_type_code_get",&obj0)) SWIG_fail;
14932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
14933 if (!SWIG_IsOK(res1)) {
14934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_type_code_get" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
14937 result = (uint8_t) ((arg1)->type_code);
14938 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
14945 SWIGINTERN PyObject *_wrap_new_BgpPathAttrib__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14946 PyObject *resultobj = 0;
14950 PyObject * obj0 = 0 ;
14953 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttrib",&obj0)) SWIG_fail;
14954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
14955 if (!SWIG_IsOK(res1)) {
14956 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttrib" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
14960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, SWIG_POINTER_NEW | 0 );
14967 SWIGINTERN PyObject *_wrap_new_BgpPathAttrib__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
14968 PyObject *resultobj = 0;
14970 uint8_t *arg2 = (uint8_t *) 0 ;
14976 unsigned short val3 ;
14978 PyObject * obj0 = 0 ;
14979 PyObject * obj1 = 0 ;
14980 PyObject * obj2 = 0 ;
14983 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpPathAttrib",&obj0,&obj1,&obj2)) SWIG_fail;
14984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
14985 if (!SWIG_IsOK(res1)) {
14986 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttrib" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
14989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
14990 if (!SWIG_IsOK(res2)) {
14991 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_BgpPathAttrib" "', argument " "2"" of type '" "uint8_t const *""'");
14993 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
14994 ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3);
14995 if (!SWIG_IsOK(ecode3)) {
14996 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpPathAttrib" "', argument " "3"" of type '" "uint16_t""'");
14998 arg3 =
static_cast< uint16_t
>(val3);
15000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, SWIG_POINTER_NEW | 0 );
15007 SWIGINTERN PyObject *_wrap_new_BgpPathAttrib(PyObject *
self, PyObject *args) {
15009 PyObject *argv[4] = {
15014 if (!PyTuple_Check(args)) SWIG_fail;
15015 argc = args ? PyObject_Length(args) : 0;
15016 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15017 argv[ii] = PyTuple_GET_ITEM(args,ii);
15022 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
15023 _v = SWIG_CheckState(res);
15025 return _wrap_new_BgpPathAttrib__SWIG_0(
self, args);
15031 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
15032 _v = SWIG_CheckState(res);
15035 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
15036 _v = SWIG_CheckState(res);
15039 int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
15040 _v = SWIG_CheckState(res);
15043 return _wrap_new_BgpPathAttrib__SWIG_1(
self, args);
15050 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpPathAttrib'.\n" 15051 " Possible C/C++ prototypes are:\n" 15052 " libbgp::BgpPathAttrib::BgpPathAttrib(libbgp::BgpLogHandler *)\n" 15053 " libbgp::BgpPathAttrib::BgpPathAttrib(libbgp::BgpLogHandler *,uint8_t const *,uint16_t)\n");
15058 SWIGINTERN PyObject *_wrap_BgpPathAttrib_GetTypeFromBuffer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15059 PyObject *resultobj = 0;
15060 uint8_t *arg1 = (uint8_t *) 0 ;
15066 PyObject * obj0 = 0 ;
15067 PyObject * obj1 = 0 ;
15070 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_GetTypeFromBuffer",&obj0,&obj1)) SWIG_fail;
15071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
15072 if (!SWIG_IsOK(res1)) {
15073 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_GetTypeFromBuffer" "', argument " "1"" of type '" "uint8_t const *""'");
15075 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
15076 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15077 if (!SWIG_IsOK(ecode2)) {
15078 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_GetTypeFromBuffer" "', argument " "2"" of type '" "size_t""'");
15080 arg2 =
static_cast< size_t >(val2);
15082 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15089 SWIGINTERN PyObject *_wrap_BgpPathAttrib_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15090 PyObject *resultobj = 0;
15093 uint8_t **arg3 = (uint8_t **) 0 ;
15094 size_t *arg4 = (
size_t *) 0 ;
15103 PyObject * obj0 = 0 ;
15104 PyObject * obj1 = 0 ;
15105 PyObject * obj2 = 0 ;
15106 PyObject * obj3 = 0 ;
15109 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttrib_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15111 if (!SWIG_IsOK(res1)) {
15112 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttrib const *""'");
15115 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15116 if (!SWIG_IsOK(ecode2)) {
15117 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttrib_doPrint" "', argument " "2"" of type '" "size_t""'");
15119 arg2 =
static_cast< size_t >(val2);
15120 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
15121 if (!SWIG_IsOK(res3)) {
15122 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttrib_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
15124 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
15125 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
15126 if (!SWIG_IsOK(res4)) {
15127 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttrib_doPrint" "', argument " "4"" of type '" "size_t *""'");
15129 arg4 =
reinterpret_cast< size_t *
>(argp4);
15131 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15138 SWIGINTERN PyObject *_wrap_BgpPathAttrib_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15139 PyObject *resultobj = 0;
15141 uint8_t *arg2 = (uint8_t *) 0 ;
15149 PyObject * obj0 = 0 ;
15150 PyObject * obj1 = 0 ;
15151 PyObject * obj2 = 0 ;
15154 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttrib_parse",&obj0,&obj1,&obj2)) SWIG_fail;
15155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15156 if (!SWIG_IsOK(res1)) {
15157 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
15160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
15161 if (!SWIG_IsOK(res2)) {
15162 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttrib_parse" "', argument " "2"" of type '" "uint8_t const *""'");
15164 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
15165 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15166 if (!SWIG_IsOK(ecode3)) {
15167 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttrib_parse" "', argument " "3"" of type '" "size_t""'");
15169 arg3 =
static_cast< size_t >(val3);
15170 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
15171 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15178 SWIGINTERN PyObject *_wrap_BgpPathAttrib_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15179 PyObject *resultobj = 0;
15181 uint8_t *arg2 = (uint8_t *) 0 ;
15189 PyObject * obj0 = 0 ;
15190 PyObject * obj1 = 0 ;
15191 PyObject * obj2 = 0 ;
15194 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttrib_write",&obj0,&obj1,&obj2)) SWIG_fail;
15195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15196 if (!SWIG_IsOK(res1)) {
15197 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_write" "', argument " "1"" of type '" "libbgp::BgpPathAttrib const *""'");
15200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
15201 if (!SWIG_IsOK(res2)) {
15202 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttrib_write" "', argument " "2"" of type '" "uint8_t *""'");
15204 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
15205 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15206 if (!SWIG_IsOK(ecode3)) {
15207 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttrib_write" "', argument " "3"" of type '" "size_t""'");
15209 arg3 =
static_cast< size_t >(val3);
15211 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15218 SWIGINTERN PyObject *_wrap_BgpPathAttrib_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15219 PyObject *resultobj = 0;
15223 PyObject * obj0 = 0 ;
15226 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_length",&obj0)) SWIG_fail;
15227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15228 if (!SWIG_IsOK(res1)) {
15229 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_length" "', argument " "1"" of type '" "libbgp::BgpPathAttrib const *""'");
15233 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15240 SWIGINTERN PyObject *_wrap_BgpPathAttrib_clone__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15241 PyObject *resultobj = 0;
15248 PyObject * obj0 = 0 ;
15249 PyObject * obj1 = 0 ;
15252 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttrib_clone",&obj0,&obj1)) SWIG_fail;
15253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15254 if (!SWIG_IsOK(res1)) {
15255 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttrib const *""'");
15258 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
15259 if (!SWIG_IsOK(res2)) {
15260 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttrib_clone" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
15264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15271 SWIGINTERN PyObject *_wrap_BgpPathAttrib_clone__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15272 PyObject *resultobj = 0;
15276 PyObject * obj0 = 0 ;
15279 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttrib_clone",&obj0)) SWIG_fail;
15280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15281 if (!SWIG_IsOK(res1)) {
15282 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttrib_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttrib const *""'");
15286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15293 SWIGINTERN PyObject *_wrap_BgpPathAttrib_clone(PyObject *
self, PyObject *args) {
15295 PyObject *argv[3] = {
15300 if (!PyTuple_Check(args)) SWIG_fail;
15301 argc = args ? PyObject_Length(args) : 0;
15302 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15303 argv[ii] = PyTuple_GET_ITEM(args,ii);
15308 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpPathAttrib, 0);
15309 _v = SWIG_CheckState(res);
15311 return _wrap_BgpPathAttrib_clone__SWIG_1(
self, args);
15317 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpPathAttrib, 0);
15318 _v = SWIG_CheckState(res);
15321 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
15322 _v = SWIG_CheckState(res);
15324 return _wrap_BgpPathAttrib_clone__SWIG_0(
self, args);
15330 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpPathAttrib_clone'.\n" 15331 " Possible C/C++ prototypes are:\n" 15332 " libbgp::BgpPathAttrib::clone(libbgp::BgpLogHandler *) const\n" 15333 " libbgp::BgpPathAttrib::clone() const\n");
15338 SWIGINTERN PyObject *_wrap_delete_BgpPathAttrib(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15339 PyObject *resultobj = 0;
15343 PyObject * obj0 = 0 ;
15345 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttrib",&obj0)) SWIG_fail;
15346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttrib, SWIG_POINTER_DISOWN | 0 );
15347 if (!SWIG_IsOK(res1)) {
15348 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttrib" "', argument " "1"" of type '" "libbgp::BgpPathAttrib *""'");
15352 resultobj = SWIG_Py_Void();
15359 SWIGINTERN PyObject *BgpPathAttrib_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15361 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
15362 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttrib, SWIG_NewClientData(obj));
15363 return SWIG_Py_Void();
15366 SWIGINTERN PyObject *_wrap_new_BgpPathAttribOrigin(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15367 PyObject *resultobj = 0;
15371 PyObject * obj0 = 0 ;
15374 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribOrigin",&obj0)) SWIG_fail;
15375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribOrigin" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
15381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribOrigin, SWIG_POINTER_NEW | 0 );
15388 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_origin_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15389 PyObject *resultobj = 0;
15394 unsigned char val2 ;
15396 PyObject * obj0 = 0 ;
15397 PyObject * obj1 = 0 ;
15399 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribOrigin_origin_set",&obj0,&obj1)) SWIG_fail;
15400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15401 if (!SWIG_IsOK(res1)) {
15402 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_origin_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin *""'");
15405 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
15406 if (!SWIG_IsOK(ecode2)) {
15407 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribOrigin_origin_set" "', argument " "2"" of type '" "uint8_t""'");
15409 arg2 =
static_cast< uint8_t
>(val2);
15410 if (arg1) (arg1)->origin = arg2;
15411 resultobj = SWIG_Py_Void();
15418 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_origin_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15419 PyObject *resultobj = 0;
15423 PyObject * obj0 = 0 ;
15426 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribOrigin_origin_get",&obj0)) SWIG_fail;
15427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15428 if (!SWIG_IsOK(res1)) {
15429 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_origin_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin *""'");
15432 result = (uint8_t) ((arg1)->origin);
15433 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15440 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15441 PyObject *resultobj = 0;
15445 PyObject * obj0 = 0 ;
15448 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribOrigin_clone",&obj0)) SWIG_fail;
15449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15450 if (!SWIG_IsOK(res1)) {
15451 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin const *""'");
15455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15462 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15463 PyObject *resultobj = 0;
15465 uint8_t *arg2 = (uint8_t *) 0 ;
15473 PyObject * obj0 = 0 ;
15474 PyObject * obj1 = 0 ;
15475 PyObject * obj2 = 0 ;
15478 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribOrigin_parse",&obj0,&obj1,&obj2)) SWIG_fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15480 if (!SWIG_IsOK(res1)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin *""'");
15484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
15485 if (!SWIG_IsOK(res2)) {
15486 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribOrigin_parse" "', argument " "2"" of type '" "uint8_t const *""'");
15488 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
15489 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15490 if (!SWIG_IsOK(ecode3)) {
15491 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribOrigin_parse" "', argument " "3"" of type '" "size_t""'");
15493 arg3 =
static_cast< size_t >(val3);
15494 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
15495 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15502 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15503 PyObject *resultobj = 0;
15505 uint8_t *arg2 = (uint8_t *) 0 ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 PyObject * obj2 = 0 ;
15518 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribOrigin_write",&obj0,&obj1,&obj2)) SWIG_fail;
15519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15520 if (!SWIG_IsOK(res1)) {
15521 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin const *""'");
15524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
15525 if (!SWIG_IsOK(res2)) {
15526 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribOrigin_write" "', argument " "2"" of type '" "uint8_t *""'");
15528 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
15529 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
15530 if (!SWIG_IsOK(ecode3)) {
15531 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribOrigin_write" "', argument " "3"" of type '" "size_t""'");
15533 arg3 =
static_cast< size_t >(val3);
15535 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15542 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15543 PyObject *resultobj = 0;
15546 uint8_t **arg3 = (uint8_t **) 0 ;
15547 size_t *arg4 = (
size_t *) 0 ;
15556 PyObject * obj0 = 0 ;
15557 PyObject * obj1 = 0 ;
15558 PyObject * obj2 = 0 ;
15559 PyObject * obj3 = 0 ;
15562 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribOrigin_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin const *""'");
15568 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
15569 if (!SWIG_IsOK(ecode2)) {
15570 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribOrigin_doPrint" "', argument " "2"" of type '" "size_t""'");
15572 arg2 =
static_cast< size_t >(val2);
15573 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
15574 if (!SWIG_IsOK(res3)) {
15575 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribOrigin_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
15577 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
15578 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
15579 if (!SWIG_IsOK(res4)) {
15580 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribOrigin_doPrint" "', argument " "4"" of type '" "size_t *""'");
15582 arg4 =
reinterpret_cast< size_t *
>(argp4);
15584 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15591 SWIGINTERN PyObject *_wrap_BgpPathAttribOrigin_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15592 PyObject *resultobj = 0;
15596 PyObject * obj0 = 0 ;
15599 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribOrigin_length",&obj0)) SWIG_fail;
15600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, 0 | 0 );
15601 if (!SWIG_IsOK(res1)) {
15602 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribOrigin_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin const *""'");
15606 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
15613 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribOrigin(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15614 PyObject *resultobj = 0;
15618 PyObject * obj0 = 0 ;
15620 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribOrigin",&obj0)) SWIG_fail;
15621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribOrigin, SWIG_POINTER_DISOWN | 0 );
15622 if (!SWIG_IsOK(res1)) {
15623 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribOrigin" "', argument " "1"" of type '" "libbgp::BgpPathAttribOrigin *""'");
15627 resultobj = SWIG_Py_Void();
15634 SWIGINTERN PyObject *BgpPathAttribOrigin_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15636 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
15637 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribOrigin, SWIG_NewClientData(obj));
15638 return SWIG_Py_Void();
15641 SWIGINTERN PyObject *_wrap_new_BgpAsPathSegment(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15642 PyObject *resultobj = 0;
15647 unsigned char val2 ;
15649 PyObject * obj0 = 0 ;
15650 PyObject * obj1 = 0 ;
15653 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpAsPathSegment",&obj0,&obj1)) SWIG_fail;
15654 ecode1 = SWIG_AsVal_bool(obj0, &val1);
15655 if (!SWIG_IsOK(ecode1)) {
15656 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpAsPathSegment" "', argument " "1"" of type '" "bool""'");
15658 arg1 =
static_cast< bool >(val1);
15659 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
15660 if (!SWIG_IsOK(ecode2)) {
15661 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpAsPathSegment" "', argument " "2"" of type '" "uint8_t""'");
15663 arg2 =
static_cast< uint8_t
>(val2);
15665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpAsPathSegment, SWIG_POINTER_NEW | 0 );
15672 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_is_4b_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15673 PyObject *resultobj = 0;
15680 PyObject * obj0 = 0 ;
15681 PyObject * obj1 = 0 ;
15683 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpAsPathSegment_is_4b_set",&obj0,&obj1)) SWIG_fail;
15684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15685 if (!SWIG_IsOK(res1)) {
15686 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_is_4b_set" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15689 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15690 if (!SWIG_IsOK(ecode2)) {
15691 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpAsPathSegment_is_4b_set" "', argument " "2"" of type '" "bool""'");
15693 arg2 =
static_cast< bool >(val2);
15694 if (arg1) (arg1)->is_4b = arg2;
15695 resultobj = SWIG_Py_Void();
15702 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_is_4b_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15703 PyObject *resultobj = 0;
15707 PyObject * obj0 = 0 ;
15710 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpAsPathSegment_is_4b_get",&obj0)) SWIG_fail;
15711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15712 if (!SWIG_IsOK(res1)) {
15713 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_is_4b_get" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15716 result = (bool) ((arg1)->is_4b);
15717 resultobj = SWIG_From_bool(static_cast< bool >(result));
15724 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_type_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15725 PyObject *resultobj = 0;
15730 unsigned char val2 ;
15732 PyObject * obj0 = 0 ;
15733 PyObject * obj1 = 0 ;
15735 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpAsPathSegment_type_set",&obj0,&obj1)) SWIG_fail;
15736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15737 if (!SWIG_IsOK(res1)) {
15738 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_type_set" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15741 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
15742 if (!SWIG_IsOK(ecode2)) {
15743 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpAsPathSegment_type_set" "', argument " "2"" of type '" "uint8_t""'");
15745 arg2 =
static_cast< uint8_t
>(val2);
15746 if (arg1) (arg1)->type = arg2;
15747 resultobj = SWIG_Py_Void();
15754 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_type_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15755 PyObject *resultobj = 0;
15759 PyObject * obj0 = 0 ;
15762 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpAsPathSegment_type_get",&obj0)) SWIG_fail;
15763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15764 if (!SWIG_IsOK(res1)) {
15765 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_type_get" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15768 result = (uint8_t) ((arg1)->type);
15769 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15776 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_getCount(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15777 PyObject *resultobj = 0;
15781 PyObject * obj0 = 0 ;
15784 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpAsPathSegment_getCount",&obj0)) SWIG_fail;
15785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15786 if (!SWIG_IsOK(res1)) {
15787 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_getCount" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment const *""'");
15791 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
15798 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_prepend(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15799 PyObject *resultobj = 0;
15804 unsigned int val2 ;
15806 PyObject * obj0 = 0 ;
15807 PyObject * obj1 = 0 ;
15810 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpAsPathSegment_prepend",&obj0,&obj1)) SWIG_fail;
15811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15812 if (!SWIG_IsOK(res1)) {
15813 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_prepend" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15816 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
15817 if (!SWIG_IsOK(ecode2)) {
15818 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpAsPathSegment_prepend" "', argument " "2"" of type '" "uint32_t""'");
15820 arg2 =
static_cast< uint32_t
>(val2);
15821 result = (bool)(arg1)->prepend(arg2);
15822 resultobj = SWIG_From_bool(static_cast< bool >(result));
15829 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_value_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15830 PyObject *resultobj = 0;
15832 std::vector< uint32_t > arg2 ;
15837 PyObject * obj0 = 0 ;
15838 PyObject * obj1 = 0 ;
15840 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpAsPathSegment_value_set",&obj0,&obj1)) SWIG_fail;
15841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15842 if (!SWIG_IsOK(res1)) {
15843 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_value_set" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15847 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_t, 0 | 0);
15848 if (!SWIG_IsOK(res2)) {
15849 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpAsPathSegment_value_set" "', argument " "2"" of type '" "std::vector< uint32_t >""'");
15852 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpAsPathSegment_value_set" "', argument " "2"" of type '" "std::vector< uint32_t >""'");
15854 std::vector< uint32_t > * temp =
reinterpret_cast< std::vector< uint32_t > *
>(argp2);
15856 if (SWIG_IsNewObj(res2))
delete temp;
15859 if (arg1) (arg1)->value = arg2;
15860 resultobj = SWIG_Py_Void();
15867 SWIGINTERN PyObject *_wrap_BgpAsPathSegment_value_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15868 PyObject *resultobj = 0;
15872 PyObject * obj0 = 0 ;
15873 std::vector< uint32_t > result;
15875 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpAsPathSegment_value_get",&obj0)) SWIG_fail;
15876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, 0 | 0 );
15877 if (!SWIG_IsOK(res1)) {
15878 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpAsPathSegment_value_get" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15881 result = ((arg1)->value);
15882 resultobj = SWIG_NewPointerObj((
new std::vector< uint32_t >(
static_cast< const std::vector< uint32_t >&
>(result))), SWIGTYPE_p_std__vectorT_unsigned_int_t, SWIG_POINTER_OWN | 0 );
15889 SWIGINTERN PyObject *_wrap_delete_BgpAsPathSegment(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15890 PyObject *resultobj = 0;
15894 PyObject * obj0 = 0 ;
15896 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpAsPathSegment",&obj0)) SWIG_fail;
15897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpAsPathSegment, SWIG_POINTER_DISOWN | 0 );
15898 if (!SWIG_IsOK(res1)) {
15899 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpAsPathSegment" "', argument " "1"" of type '" "libbgp::BgpAsPathSegment *""'");
15903 resultobj = SWIG_Py_Void();
15910 SWIGINTERN PyObject *BgpAsPathSegment_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15912 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
15913 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpAsPathSegment, SWIG_NewClientData(obj));
15914 return SWIG_Py_Void();
15917 SWIGINTERN PyObject *_wrap_new_BgpPathAttribAsPath(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15918 PyObject *resultobj = 0;
15925 PyObject * obj0 = 0 ;
15926 PyObject * obj1 = 0 ;
15929 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpPathAttribAsPath",&obj0,&obj1)) SWIG_fail;
15930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
15931 if (!SWIG_IsOK(res1)) {
15932 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribAsPath" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
15935 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15936 if (!SWIG_IsOK(ecode2)) {
15937 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpPathAttribAsPath" "', argument " "2"" of type '" "bool""'");
15939 arg2 =
static_cast< bool >(val2);
15941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribAsPath, SWIG_POINTER_NEW | 0 );
15948 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15949 PyObject *resultobj = 0;
15953 PyObject * obj0 = 0 ;
15956 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAsPath_clone",&obj0)) SWIG_fail;
15957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
15958 if (!SWIG_IsOK(res1)) {
15959 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath const *""'");
15963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
15970 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_as_paths_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
15971 PyObject *resultobj = 0;
15973 std::vector< libbgp::BgpAsPathSegment > *arg2 = (std::vector< libbgp::BgpAsPathSegment > *) 0 ;
15978 PyObject * obj0 = 0 ;
15979 PyObject * obj1 = 0 ;
15981 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAsPath_as_paths_set",&obj0,&obj1)) SWIG_fail;
15982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
15983 if (!SWIG_IsOK(res1)) {
15984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_as_paths_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
15987 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_libbgp__BgpAsPathSegment_t, 0 | 0 );
15988 if (!SWIG_IsOK(res2)) {
15989 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAsPath_as_paths_set" "', argument " "2"" of type '" "std::vector< libbgp::BgpAsPathSegment > *""'");
15991 arg2 =
reinterpret_cast< std::vector< libbgp::BgpAsPathSegment > *
>(argp2);
15992 if (arg1) (arg1)->as_paths = *arg2;
15993 resultobj = SWIG_Py_Void();
16000 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_as_paths_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16001 PyObject *resultobj = 0;
16005 PyObject * obj0 = 0 ;
16006 std::vector< libbgp::BgpAsPathSegment > *result = 0 ;
16008 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAsPath_as_paths_get",&obj0)) SWIG_fail;
16009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16010 if (!SWIG_IsOK(res1)) {
16011 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_as_paths_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
16014 result = (std::vector< libbgp::BgpAsPathSegment > *)& ((arg1)->as_paths);
16015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__BgpAsPathSegment_t, 0 | 0 );
16022 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_is_4b_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16023 PyObject *resultobj = 0;
16030 PyObject * obj0 = 0 ;
16031 PyObject * obj1 = 0 ;
16033 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAsPath_is_4b_set",&obj0,&obj1)) SWIG_fail;
16034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16035 if (!SWIG_IsOK(res1)) {
16036 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_is_4b_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
16039 ecode2 = SWIG_AsVal_bool(obj1, &val2);
16040 if (!SWIG_IsOK(ecode2)) {
16041 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAsPath_is_4b_set" "', argument " "2"" of type '" "bool""'");
16043 arg2 =
static_cast< bool >(val2);
16044 if (arg1) (arg1)->is_4b = arg2;
16045 resultobj = SWIG_Py_Void();
16052 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_is_4b_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16053 PyObject *resultobj = 0;
16057 PyObject * obj0 = 0 ;
16060 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAsPath_is_4b_get",&obj0)) SWIG_fail;
16061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16062 if (!SWIG_IsOK(res1)) {
16063 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_is_4b_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
16066 result = (bool) ((arg1)->is_4b);
16067 resultobj = SWIG_From_bool(static_cast< bool >(result));
16074 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_prepend(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16075 PyObject *resultobj = 0;
16080 unsigned int val2 ;
16082 PyObject * obj0 = 0 ;
16083 PyObject * obj1 = 0 ;
16086 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAsPath_prepend",&obj0,&obj1)) SWIG_fail;
16087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16088 if (!SWIG_IsOK(res1)) {
16089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_prepend" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
16092 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16093 if (!SWIG_IsOK(ecode2)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAsPath_prepend" "', argument " "2"" of type '" "uint32_t""'");
16096 arg2 =
static_cast< uint32_t
>(val2);
16097 result = (bool)(arg1)->prepend(arg2);
16098 resultobj = SWIG_From_bool(static_cast< bool >(result));
16105 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16106 PyObject *resultobj = 0;
16108 uint8_t *arg2 = (uint8_t *) 0 ;
16116 PyObject * obj0 = 0 ;
16117 PyObject * obj1 = 0 ;
16118 PyObject * obj2 = 0 ;
16121 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAsPath_parse",&obj0,&obj1,&obj2)) SWIG_fail;
16122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16123 if (!SWIG_IsOK(res1)) {
16124 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
16127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16128 if (!SWIG_IsOK(res2)) {
16129 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAsPath_parse" "', argument " "2"" of type '" "uint8_t const *""'");
16131 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16132 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16133 if (!SWIG_IsOK(ecode3)) {
16134 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAsPath_parse" "', argument " "3"" of type '" "size_t""'");
16136 arg3 =
static_cast< size_t >(val3);
16137 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
16138 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16145 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16146 PyObject *resultobj = 0;
16148 uint8_t *arg2 = (uint8_t *) 0 ;
16156 PyObject * obj0 = 0 ;
16157 PyObject * obj1 = 0 ;
16158 PyObject * obj2 = 0 ;
16161 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAsPath_write",&obj0,&obj1,&obj2)) SWIG_fail;
16162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16163 if (!SWIG_IsOK(res1)) {
16164 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath const *""'");
16167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16168 if (!SWIG_IsOK(res2)) {
16169 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAsPath_write" "', argument " "2"" of type '" "uint8_t *""'");
16171 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16172 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16173 if (!SWIG_IsOK(ecode3)) {
16174 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAsPath_write" "', argument " "3"" of type '" "size_t""'");
16176 arg3 =
static_cast< size_t >(val3);
16178 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16185 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16186 PyObject *resultobj = 0;
16189 uint8_t **arg3 = (uint8_t **) 0 ;
16190 size_t *arg4 = (
size_t *) 0 ;
16199 PyObject * obj0 = 0 ;
16200 PyObject * obj1 = 0 ;
16201 PyObject * obj2 = 0 ;
16202 PyObject * obj3 = 0 ;
16205 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribAsPath_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath const *""'");
16211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
16212 if (!SWIG_IsOK(ecode2)) {
16213 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAsPath_doPrint" "', argument " "2"" of type '" "size_t""'");
16215 arg2 =
static_cast< size_t >(val2);
16216 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
16217 if (!SWIG_IsOK(res3)) {
16218 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribAsPath_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
16220 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
16221 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
16222 if (!SWIG_IsOK(res4)) {
16223 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribAsPath_doPrint" "', argument " "4"" of type '" "size_t *""'");
16225 arg4 =
reinterpret_cast< size_t *
>(argp4);
16227 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16234 SWIGINTERN PyObject *_wrap_BgpPathAttribAsPath_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16235 PyObject *resultobj = 0;
16239 PyObject * obj0 = 0 ;
16242 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAsPath_length",&obj0)) SWIG_fail;
16243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAsPath_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath const *""'");
16249 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16256 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribAsPath(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16257 PyObject *resultobj = 0;
16261 PyObject * obj0 = 0 ;
16263 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribAsPath",&obj0)) SWIG_fail;
16264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAsPath, SWIG_POINTER_DISOWN | 0 );
16265 if (!SWIG_IsOK(res1)) {
16266 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribAsPath" "', argument " "1"" of type '" "libbgp::BgpPathAttribAsPath *""'");
16270 resultobj = SWIG_Py_Void();
16277 SWIGINTERN PyObject *BgpPathAttribAsPath_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16279 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
16280 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribAsPath, SWIG_NewClientData(obj));
16281 return SWIG_Py_Void();
16284 SWIGINTERN PyObject *_wrap_new_BgpPathAttribNexthop(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16285 PyObject *resultobj = 0;
16289 PyObject * obj0 = 0 ;
16292 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribNexthop",&obj0)) SWIG_fail;
16293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribNexthop" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
16299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribNexthop, SWIG_POINTER_NEW | 0 );
16306 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_next_hop_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16307 PyObject *resultobj = 0;
16312 unsigned int val2 ;
16314 PyObject * obj0 = 0 ;
16315 PyObject * obj1 = 0 ;
16317 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribNexthop_next_hop_set",&obj0,&obj1)) SWIG_fail;
16318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16319 if (!SWIG_IsOK(res1)) {
16320 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_next_hop_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop *""'");
16323 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16324 if (!SWIG_IsOK(ecode2)) {
16325 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribNexthop_next_hop_set" "', argument " "2"" of type '" "uint32_t""'");
16327 arg2 =
static_cast< uint32_t
>(val2);
16328 if (arg1) (arg1)->next_hop = arg2;
16329 resultobj = SWIG_Py_Void();
16336 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_next_hop_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16337 PyObject *resultobj = 0;
16341 PyObject * obj0 = 0 ;
16344 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribNexthop_next_hop_get",&obj0)) SWIG_fail;
16345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16346 if (!SWIG_IsOK(res1)) {
16347 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_next_hop_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop *""'");
16350 result = (uint32_t) ((arg1)->next_hop);
16351 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16358 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16359 PyObject *resultobj = 0;
16363 PyObject * obj0 = 0 ;
16366 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribNexthop_clone",&obj0)) SWIG_fail;
16367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16368 if (!SWIG_IsOK(res1)) {
16369 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop const *""'");
16373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
16380 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16381 PyObject *resultobj = 0;
16383 uint8_t *arg2 = (uint8_t *) 0 ;
16391 PyObject * obj0 = 0 ;
16392 PyObject * obj1 = 0 ;
16393 PyObject * obj2 = 0 ;
16396 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribNexthop_parse",&obj0,&obj1,&obj2)) SWIG_fail;
16397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16398 if (!SWIG_IsOK(res1)) {
16399 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop *""'");
16402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16403 if (!SWIG_IsOK(res2)) {
16404 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribNexthop_parse" "', argument " "2"" of type '" "uint8_t const *""'");
16406 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16407 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16408 if (!SWIG_IsOK(ecode3)) {
16409 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribNexthop_parse" "', argument " "3"" of type '" "size_t""'");
16411 arg3 =
static_cast< size_t >(val3);
16412 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
16413 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16420 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16421 PyObject *resultobj = 0;
16423 uint8_t *arg2 = (uint8_t *) 0 ;
16431 PyObject * obj0 = 0 ;
16432 PyObject * obj1 = 0 ;
16433 PyObject * obj2 = 0 ;
16436 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribNexthop_write",&obj0,&obj1,&obj2)) SWIG_fail;
16437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16438 if (!SWIG_IsOK(res1)) {
16439 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop const *""'");
16442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16443 if (!SWIG_IsOK(res2)) {
16444 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribNexthop_write" "', argument " "2"" of type '" "uint8_t *""'");
16446 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16447 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16448 if (!SWIG_IsOK(ecode3)) {
16449 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribNexthop_write" "', argument " "3"" of type '" "size_t""'");
16451 arg3 =
static_cast< size_t >(val3);
16453 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16460 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16461 PyObject *resultobj = 0;
16464 uint8_t **arg3 = (uint8_t **) 0 ;
16465 size_t *arg4 = (
size_t *) 0 ;
16474 PyObject * obj0 = 0 ;
16475 PyObject * obj1 = 0 ;
16476 PyObject * obj2 = 0 ;
16477 PyObject * obj3 = 0 ;
16480 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribNexthop_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16482 if (!SWIG_IsOK(res1)) {
16483 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop const *""'");
16486 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
16487 if (!SWIG_IsOK(ecode2)) {
16488 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribNexthop_doPrint" "', argument " "2"" of type '" "size_t""'");
16490 arg2 =
static_cast< size_t >(val2);
16491 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
16492 if (!SWIG_IsOK(res3)) {
16493 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribNexthop_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
16495 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
16496 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
16497 if (!SWIG_IsOK(res4)) {
16498 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribNexthop_doPrint" "', argument " "4"" of type '" "size_t *""'");
16500 arg4 =
reinterpret_cast< size_t *
>(argp4);
16502 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16509 SWIGINTERN PyObject *_wrap_BgpPathAttribNexthop_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16510 PyObject *resultobj = 0;
16514 PyObject * obj0 = 0 ;
16517 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribNexthop_length",&obj0)) SWIG_fail;
16518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, 0 | 0 );
16519 if (!SWIG_IsOK(res1)) {
16520 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribNexthop_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop const *""'");
16524 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16531 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribNexthop(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16532 PyObject *resultobj = 0;
16536 PyObject * obj0 = 0 ;
16538 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribNexthop",&obj0)) SWIG_fail;
16539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribNexthop, SWIG_POINTER_DISOWN | 0 );
16540 if (!SWIG_IsOK(res1)) {
16541 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribNexthop" "', argument " "1"" of type '" "libbgp::BgpPathAttribNexthop *""'");
16545 resultobj = SWIG_Py_Void();
16552 SWIGINTERN PyObject *BgpPathAttribNexthop_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16554 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
16555 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribNexthop, SWIG_NewClientData(obj));
16556 return SWIG_Py_Void();
16559 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMed(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16560 PyObject *resultobj = 0;
16564 PyObject * obj0 = 0 ;
16567 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribMed",&obj0)) SWIG_fail;
16568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
16569 if (!SWIG_IsOK(res1)) {
16570 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMed" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
16574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMed, SWIG_POINTER_NEW | 0 );
16581 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_med_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16582 PyObject *resultobj = 0;
16587 unsigned int val2 ;
16589 PyObject * obj0 = 0 ;
16590 PyObject * obj1 = 0 ;
16592 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMed_med_set",&obj0,&obj1)) SWIG_fail;
16593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16594 if (!SWIG_IsOK(res1)) {
16595 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_med_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed *""'");
16598 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16599 if (!SWIG_IsOK(ecode2)) {
16600 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMed_med_set" "', argument " "2"" of type '" "uint32_t""'");
16602 arg2 =
static_cast< uint32_t
>(val2);
16603 if (arg1) (arg1)->med = arg2;
16604 resultobj = SWIG_Py_Void();
16611 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_med_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16612 PyObject *resultobj = 0;
16616 PyObject * obj0 = 0 ;
16619 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMed_med_get",&obj0)) SWIG_fail;
16620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_med_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed *""'");
16625 result = (uint32_t) ((arg1)->med);
16626 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16633 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16634 PyObject *resultobj = 0;
16638 PyObject * obj0 = 0 ;
16641 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMed_clone",&obj0)) SWIG_fail;
16642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16643 if (!SWIG_IsOK(res1)) {
16644 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed const *""'");
16648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
16655 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16656 PyObject *resultobj = 0;
16658 uint8_t *arg2 = (uint8_t *) 0 ;
16666 PyObject * obj0 = 0 ;
16667 PyObject * obj1 = 0 ;
16668 PyObject * obj2 = 0 ;
16671 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMed_parse",&obj0,&obj1,&obj2)) SWIG_fail;
16672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16673 if (!SWIG_IsOK(res1)) {
16674 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed *""'");
16677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16678 if (!SWIG_IsOK(res2)) {
16679 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMed_parse" "', argument " "2"" of type '" "uint8_t const *""'");
16681 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16682 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16683 if (!SWIG_IsOK(ecode3)) {
16684 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMed_parse" "', argument " "3"" of type '" "size_t""'");
16686 arg3 =
static_cast< size_t >(val3);
16687 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
16688 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16695 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16696 PyObject *resultobj = 0;
16698 uint8_t *arg2 = (uint8_t *) 0 ;
16706 PyObject * obj0 = 0 ;
16707 PyObject * obj1 = 0 ;
16708 PyObject * obj2 = 0 ;
16711 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMed_write",&obj0,&obj1,&obj2)) SWIG_fail;
16712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16713 if (!SWIG_IsOK(res1)) {
16714 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed const *""'");
16717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16718 if (!SWIG_IsOK(res2)) {
16719 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMed_write" "', argument " "2"" of type '" "uint8_t *""'");
16721 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16722 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16723 if (!SWIG_IsOK(ecode3)) {
16724 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMed_write" "', argument " "3"" of type '" "size_t""'");
16726 arg3 =
static_cast< size_t >(val3);
16728 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16735 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16736 PyObject *resultobj = 0;
16739 uint8_t **arg3 = (uint8_t **) 0 ;
16740 size_t *arg4 = (
size_t *) 0 ;
16749 PyObject * obj0 = 0 ;
16750 PyObject * obj1 = 0 ;
16751 PyObject * obj2 = 0 ;
16752 PyObject * obj3 = 0 ;
16755 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribMed_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16757 if (!SWIG_IsOK(res1)) {
16758 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed const *""'");
16761 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
16762 if (!SWIG_IsOK(ecode2)) {
16763 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMed_doPrint" "', argument " "2"" of type '" "size_t""'");
16765 arg2 =
static_cast< size_t >(val2);
16766 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
16767 if (!SWIG_IsOK(res3)) {
16768 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribMed_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
16770 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
16771 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
16772 if (!SWIG_IsOK(res4)) {
16773 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribMed_doPrint" "', argument " "4"" of type '" "size_t *""'");
16775 arg4 =
reinterpret_cast< size_t *
>(argp4);
16777 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16784 SWIGINTERN PyObject *_wrap_BgpPathAttribMed_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16785 PyObject *resultobj = 0;
16789 PyObject * obj0 = 0 ;
16792 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMed_length",&obj0)) SWIG_fail;
16793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, 0 | 0 );
16794 if (!SWIG_IsOK(res1)) {
16795 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMed_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed const *""'");
16799 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16806 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribMed(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16807 PyObject *resultobj = 0;
16811 PyObject * obj0 = 0 ;
16813 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribMed",&obj0)) SWIG_fail;
16814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMed, SWIG_POINTER_DISOWN | 0 );
16815 if (!SWIG_IsOK(res1)) {
16816 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribMed" "', argument " "1"" of type '" "libbgp::BgpPathAttribMed *""'");
16820 resultobj = SWIG_Py_Void();
16827 SWIGINTERN PyObject *BgpPathAttribMed_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16829 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
16830 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribMed, SWIG_NewClientData(obj));
16831 return SWIG_Py_Void();
16834 SWIGINTERN PyObject *_wrap_new_BgpPathAttribLocalPref(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16835 PyObject *resultobj = 0;
16839 PyObject * obj0 = 0 ;
16842 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribLocalPref",&obj0)) SWIG_fail;
16843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
16844 if (!SWIG_IsOK(res1)) {
16845 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribLocalPref" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
16849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, SWIG_POINTER_NEW | 0 );
16856 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_local_pref_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16857 PyObject *resultobj = 0;
16862 unsigned int val2 ;
16864 PyObject * obj0 = 0 ;
16865 PyObject * obj1 = 0 ;
16867 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribLocalPref_local_pref_set",&obj0,&obj1)) SWIG_fail;
16868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
16869 if (!SWIG_IsOK(res1)) {
16870 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_local_pref_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref *""'");
16873 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16874 if (!SWIG_IsOK(ecode2)) {
16875 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribLocalPref_local_pref_set" "', argument " "2"" of type '" "uint32_t""'");
16877 arg2 =
static_cast< uint32_t
>(val2);
16878 if (arg1) (arg1)->local_pref = arg2;
16879 resultobj = SWIG_Py_Void();
16886 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_local_pref_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16887 PyObject *resultobj = 0;
16891 PyObject * obj0 = 0 ;
16894 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribLocalPref_local_pref_get",&obj0)) SWIG_fail;
16895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
16896 if (!SWIG_IsOK(res1)) {
16897 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_local_pref_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref *""'");
16900 result = (uint32_t) ((arg1)->local_pref);
16901 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16908 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16909 PyObject *resultobj = 0;
16913 PyObject * obj0 = 0 ;
16916 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribLocalPref_clone",&obj0)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref const *""'");
16923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
16930 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16931 PyObject *resultobj = 0;
16933 uint8_t *arg2 = (uint8_t *) 0 ;
16941 PyObject * obj0 = 0 ;
16942 PyObject * obj1 = 0 ;
16943 PyObject * obj2 = 0 ;
16946 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribLocalPref_parse",&obj0,&obj1,&obj2)) SWIG_fail;
16947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
16948 if (!SWIG_IsOK(res1)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref *""'");
16952 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16953 if (!SWIG_IsOK(res2)) {
16954 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribLocalPref_parse" "', argument " "2"" of type '" "uint8_t const *""'");
16956 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16957 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16958 if (!SWIG_IsOK(ecode3)) {
16959 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribLocalPref_parse" "', argument " "3"" of type '" "size_t""'");
16961 arg3 =
static_cast< size_t >(val3);
16962 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
16963 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
16970 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
16971 PyObject *resultobj = 0;
16973 uint8_t *arg2 = (uint8_t *) 0 ;
16981 PyObject * obj0 = 0 ;
16982 PyObject * obj1 = 0 ;
16983 PyObject * obj2 = 0 ;
16986 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribLocalPref_write",&obj0,&obj1,&obj2)) SWIG_fail;
16987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
16988 if (!SWIG_IsOK(res1)) {
16989 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref const *""'");
16992 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
16993 if (!SWIG_IsOK(res2)) {
16994 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribLocalPref_write" "', argument " "2"" of type '" "uint8_t *""'");
16996 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
16997 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
16998 if (!SWIG_IsOK(ecode3)) {
16999 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribLocalPref_write" "', argument " "3"" of type '" "size_t""'");
17001 arg3 =
static_cast< size_t >(val3);
17003 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17010 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17011 PyObject *resultobj = 0;
17014 uint8_t **arg3 = (uint8_t **) 0 ;
17015 size_t *arg4 = (
size_t *) 0 ;
17024 PyObject * obj0 = 0 ;
17025 PyObject * obj1 = 0 ;
17026 PyObject * obj2 = 0 ;
17027 PyObject * obj3 = 0 ;
17030 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribLocalPref_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
17032 if (!SWIG_IsOK(res1)) {
17033 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref const *""'");
17036 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17037 if (!SWIG_IsOK(ecode2)) {
17038 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribLocalPref_doPrint" "', argument " "2"" of type '" "size_t""'");
17040 arg2 =
static_cast< size_t >(val2);
17041 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
17042 if (!SWIG_IsOK(res3)) {
17043 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribLocalPref_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
17045 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
17046 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
17047 if (!SWIG_IsOK(res4)) {
17048 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribLocalPref_doPrint" "', argument " "4"" of type '" "size_t *""'");
17050 arg4 =
reinterpret_cast< size_t *
>(argp4);
17052 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17059 SWIGINTERN PyObject *_wrap_BgpPathAttribLocalPref_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17060 PyObject *resultobj = 0;
17064 PyObject * obj0 = 0 ;
17067 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribLocalPref_length",&obj0)) SWIG_fail;
17068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, 0 | 0 );
17069 if (!SWIG_IsOK(res1)) {
17070 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribLocalPref_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref const *""'");
17074 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17081 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribLocalPref(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17082 PyObject *resultobj = 0;
17086 PyObject * obj0 = 0 ;
17088 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribLocalPref",&obj0)) SWIG_fail;
17089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, SWIG_POINTER_DISOWN | 0 );
17090 if (!SWIG_IsOK(res1)) {
17091 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribLocalPref" "', argument " "1"" of type '" "libbgp::BgpPathAttribLocalPref *""'");
17095 resultobj = SWIG_Py_Void();
17102 SWIGINTERN PyObject *BgpPathAttribLocalPref_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17104 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
17105 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribLocalPref, SWIG_NewClientData(obj));
17106 return SWIG_Py_Void();
17109 SWIGINTERN PyObject *_wrap_new_BgpPathAttribAtomicAggregate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17110 PyObject *resultobj = 0;
17114 PyObject * obj0 = 0 ;
17117 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribAtomicAggregate",&obj0)) SWIG_fail;
17118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
17119 if (!SWIG_IsOK(res1)) {
17120 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribAtomicAggregate" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
17124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, SWIG_POINTER_NEW | 0 );
17131 SWIGINTERN PyObject *_wrap_BgpPathAttribAtomicAggregate_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17132 PyObject *resultobj = 0;
17136 PyObject * obj0 = 0 ;
17139 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAtomicAggregate_clone",&obj0)) SWIG_fail;
17140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, 0 | 0 );
17141 if (!SWIG_IsOK(res1)) {
17142 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAtomicAggregate_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribAtomicAggregate const *""'");
17146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
17153 SWIGINTERN PyObject *_wrap_BgpPathAttribAtomicAggregate_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17154 PyObject *resultobj = 0;
17156 uint8_t *arg2 = (uint8_t *) 0 ;
17164 PyObject * obj0 = 0 ;
17165 PyObject * obj1 = 0 ;
17166 PyObject * obj2 = 0 ;
17169 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAtomicAggregate_parse",&obj0,&obj1,&obj2)) SWIG_fail;
17170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, 0 | 0 );
17171 if (!SWIG_IsOK(res1)) {
17172 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAtomicAggregate_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribAtomicAggregate *""'");
17175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17176 if (!SWIG_IsOK(res2)) {
17177 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAtomicAggregate_parse" "', argument " "2"" of type '" "uint8_t const *""'");
17179 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17180 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17181 if (!SWIG_IsOK(ecode3)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAtomicAggregate_parse" "', argument " "3"" of type '" "size_t""'");
17184 arg3 =
static_cast< size_t >(val3);
17185 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
17186 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17193 SWIGINTERN PyObject *_wrap_BgpPathAttribAtomicAggregate_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17194 PyObject *resultobj = 0;
17196 uint8_t *arg2 = (uint8_t *) 0 ;
17204 PyObject * obj0 = 0 ;
17205 PyObject * obj1 = 0 ;
17206 PyObject * obj2 = 0 ;
17209 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAtomicAggregate_write",&obj0,&obj1,&obj2)) SWIG_fail;
17210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, 0 | 0 );
17211 if (!SWIG_IsOK(res1)) {
17212 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAtomicAggregate_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribAtomicAggregate const *""'");
17215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17216 if (!SWIG_IsOK(res2)) {
17217 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAtomicAggregate_write" "', argument " "2"" of type '" "uint8_t *""'");
17219 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17220 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17221 if (!SWIG_IsOK(ecode3)) {
17222 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAtomicAggregate_write" "', argument " "3"" of type '" "size_t""'");
17224 arg3 =
static_cast< size_t >(val3);
17226 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17233 SWIGINTERN PyObject *_wrap_BgpPathAttribAtomicAggregate_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17234 PyObject *resultobj = 0;
17237 uint8_t **arg3 = (uint8_t **) 0 ;
17238 size_t *arg4 = (
size_t *) 0 ;
17247 PyObject * obj0 = 0 ;
17248 PyObject * obj1 = 0 ;
17249 PyObject * obj2 = 0 ;
17250 PyObject * obj3 = 0 ;
17253 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribAtomicAggregate_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, 0 | 0 );
17255 if (!SWIG_IsOK(res1)) {
17256 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAtomicAggregate_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribAtomicAggregate const *""'");
17259 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17260 if (!SWIG_IsOK(ecode2)) {
17261 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAtomicAggregate_doPrint" "', argument " "2"" of type '" "size_t""'");
17263 arg2 =
static_cast< size_t >(val2);
17264 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
17265 if (!SWIG_IsOK(res3)) {
17266 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribAtomicAggregate_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
17268 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
17269 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
17270 if (!SWIG_IsOK(res4)) {
17271 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribAtomicAggregate_doPrint" "', argument " "4"" of type '" "size_t *""'");
17273 arg4 =
reinterpret_cast< size_t *
>(argp4);
17275 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17282 SWIGINTERN PyObject *_wrap_BgpPathAttribAtomicAggregate_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17283 PyObject *resultobj = 0;
17287 PyObject * obj0 = 0 ;
17290 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAtomicAggregate_length",&obj0)) SWIG_fail;
17291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, 0 | 0 );
17292 if (!SWIG_IsOK(res1)) {
17293 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAtomicAggregate_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribAtomicAggregate const *""'");
17297 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17304 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribAtomicAggregate(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17305 PyObject *resultobj = 0;
17309 PyObject * obj0 = 0 ;
17311 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribAtomicAggregate",&obj0)) SWIG_fail;
17312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, SWIG_POINTER_DISOWN | 0 );
17313 if (!SWIG_IsOK(res1)) {
17314 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribAtomicAggregate" "', argument " "1"" of type '" "libbgp::BgpPathAttribAtomicAggregate *""'");
17318 resultobj = SWIG_Py_Void();
17325 SWIGINTERN PyObject *BgpPathAttribAtomicAggregate_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17327 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
17328 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribAtomicAggregate, SWIG_NewClientData(obj));
17329 return SWIG_Py_Void();
17332 SWIGINTERN PyObject *_wrap_new_BgpPathAttribAggregator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17333 PyObject *resultobj = 0;
17340 PyObject * obj0 = 0 ;
17341 PyObject * obj1 = 0 ;
17344 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpPathAttribAggregator",&obj0,&obj1)) SWIG_fail;
17345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribAggregator" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
17350 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17351 if (!SWIG_IsOK(ecode2)) {
17352 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpPathAttribAggregator" "', argument " "2"" of type '" "bool""'");
17354 arg2 =
static_cast< bool >(val2);
17356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribAggregator, SWIG_POINTER_NEW | 0 );
17363 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_aggregator_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17364 PyObject *resultobj = 0;
17369 unsigned int val2 ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17374 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAggregator_aggregator_set",&obj0,&obj1)) SWIG_fail;
17375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17376 if (!SWIG_IsOK(res1)) {
17377 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_aggregator_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17380 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17381 if (!SWIG_IsOK(ecode2)) {
17382 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAggregator_aggregator_set" "', argument " "2"" of type '" "uint32_t""'");
17384 arg2 =
static_cast< uint32_t
>(val2);
17385 if (arg1) (arg1)->aggregator = arg2;
17386 resultobj = SWIG_Py_Void();
17393 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_aggregator_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17394 PyObject *resultobj = 0;
17398 PyObject * obj0 = 0 ;
17401 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAggregator_aggregator_get",&obj0)) SWIG_fail;
17402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17403 if (!SWIG_IsOK(res1)) {
17404 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_aggregator_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17407 result = (uint32_t) ((arg1)->aggregator);
17408 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17415 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_aggregator_asn_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17416 PyObject *resultobj = 0;
17421 unsigned int val2 ;
17423 PyObject * obj0 = 0 ;
17424 PyObject * obj1 = 0 ;
17426 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAggregator_aggregator_asn_set",&obj0,&obj1)) SWIG_fail;
17427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17428 if (!SWIG_IsOK(res1)) {
17429 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_aggregator_asn_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17432 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17433 if (!SWIG_IsOK(ecode2)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAggregator_aggregator_asn_set" "', argument " "2"" of type '" "uint32_t""'");
17436 arg2 =
static_cast< uint32_t
>(val2);
17437 if (arg1) (arg1)->aggregator_asn = arg2;
17438 resultobj = SWIG_Py_Void();
17445 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_aggregator_asn_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17446 PyObject *resultobj = 0;
17450 PyObject * obj0 = 0 ;
17453 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAggregator_aggregator_asn_get",&obj0)) SWIG_fail;
17454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17455 if (!SWIG_IsOK(res1)) {
17456 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_aggregator_asn_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17459 result = (uint32_t) ((arg1)->aggregator_asn);
17460 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17467 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_is_4b_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17468 PyObject *resultobj = 0;
17475 PyObject * obj0 = 0 ;
17476 PyObject * obj1 = 0 ;
17478 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAggregator_is_4b_set",&obj0,&obj1)) SWIG_fail;
17479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17480 if (!SWIG_IsOK(res1)) {
17481 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_is_4b_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17484 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17485 if (!SWIG_IsOK(ecode2)) {
17486 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAggregator_is_4b_set" "', argument " "2"" of type '" "bool""'");
17488 arg2 =
static_cast< bool >(val2);
17489 if (arg1) (arg1)->is_4b = arg2;
17490 resultobj = SWIG_Py_Void();
17497 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_is_4b_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17498 PyObject *resultobj = 0;
17502 PyObject * obj0 = 0 ;
17505 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAggregator_is_4b_get",&obj0)) SWIG_fail;
17506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17507 if (!SWIG_IsOK(res1)) {
17508 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_is_4b_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17511 result = (bool) ((arg1)->is_4b);
17512 resultobj = SWIG_From_bool(static_cast< bool >(result));
17519 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17520 PyObject *resultobj = 0;
17524 PyObject * obj0 = 0 ;
17527 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAggregator_clone",&obj0)) SWIG_fail;
17528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17529 if (!SWIG_IsOK(res1)) {
17530 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator const *""'");
17534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
17541 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17542 PyObject *resultobj = 0;
17544 uint8_t *arg2 = (uint8_t *) 0 ;
17552 PyObject * obj0 = 0 ;
17553 PyObject * obj1 = 0 ;
17554 PyObject * obj2 = 0 ;
17557 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAggregator_parse",&obj0,&obj1,&obj2)) SWIG_fail;
17558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17559 if (!SWIG_IsOK(res1)) {
17560 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17564 if (!SWIG_IsOK(res2)) {
17565 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAggregator_parse" "', argument " "2"" of type '" "uint8_t const *""'");
17567 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17568 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17569 if (!SWIG_IsOK(ecode3)) {
17570 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAggregator_parse" "', argument " "3"" of type '" "size_t""'");
17572 arg3 =
static_cast< size_t >(val3);
17573 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
17574 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17581 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17582 PyObject *resultobj = 0;
17584 uint8_t *arg2 = (uint8_t *) 0 ;
17592 PyObject * obj0 = 0 ;
17593 PyObject * obj1 = 0 ;
17594 PyObject * obj2 = 0 ;
17597 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAggregator_write",&obj0,&obj1,&obj2)) SWIG_fail;
17598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17599 if (!SWIG_IsOK(res1)) {
17600 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator const *""'");
17603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17604 if (!SWIG_IsOK(res2)) {
17605 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAggregator_write" "', argument " "2"" of type '" "uint8_t *""'");
17607 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17608 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17609 if (!SWIG_IsOK(ecode3)) {
17610 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAggregator_write" "', argument " "3"" of type '" "size_t""'");
17612 arg3 =
static_cast< size_t >(val3);
17614 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17621 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17622 PyObject *resultobj = 0;
17625 uint8_t **arg3 = (uint8_t **) 0 ;
17626 size_t *arg4 = (
size_t *) 0 ;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 PyObject * obj2 = 0 ;
17638 PyObject * obj3 = 0 ;
17641 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribAggregator_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator const *""'");
17647 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17648 if (!SWIG_IsOK(ecode2)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAggregator_doPrint" "', argument " "2"" of type '" "size_t""'");
17651 arg2 =
static_cast< size_t >(val2);
17652 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
17653 if (!SWIG_IsOK(res3)) {
17654 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribAggregator_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
17656 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
17657 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
17658 if (!SWIG_IsOK(res4)) {
17659 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribAggregator_doPrint" "', argument " "4"" of type '" "size_t *""'");
17661 arg4 =
reinterpret_cast< size_t *
>(argp4);
17663 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17670 SWIGINTERN PyObject *_wrap_BgpPathAttribAggregator_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17671 PyObject *resultobj = 0;
17675 PyObject * obj0 = 0 ;
17678 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAggregator_length",&obj0)) SWIG_fail;
17679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, 0 | 0 );
17680 if (!SWIG_IsOK(res1)) {
17681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAggregator_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator const *""'");
17685 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17692 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribAggregator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17693 PyObject *resultobj = 0;
17697 PyObject * obj0 = 0 ;
17699 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribAggregator",&obj0)) SWIG_fail;
17700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAggregator, SWIG_POINTER_DISOWN | 0 );
17701 if (!SWIG_IsOK(res1)) {
17702 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribAggregator" "', argument " "1"" of type '" "libbgp::BgpPathAttribAggregator *""'");
17706 resultobj = SWIG_Py_Void();
17713 SWIGINTERN PyObject *BgpPathAttribAggregator_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17715 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
17716 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribAggregator, SWIG_NewClientData(obj));
17717 return SWIG_Py_Void();
17720 SWIGINTERN PyObject *_wrap_new_BgpPathAttribAs4Path(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17721 PyObject *resultobj = 0;
17725 PyObject * obj0 = 0 ;
17728 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribAs4Path",&obj0)) SWIG_fail;
17729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
17730 if (!SWIG_IsOK(res1)) {
17731 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribAs4Path" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
17735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, SWIG_POINTER_NEW | 0 );
17742 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_as4_paths_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17743 PyObject *resultobj = 0;
17745 std::vector< libbgp::BgpAsPathSegment > *arg2 = (std::vector< libbgp::BgpAsPathSegment > *) 0 ;
17750 PyObject * obj0 = 0 ;
17751 PyObject * obj1 = 0 ;
17753 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAs4Path_as4_paths_set",&obj0,&obj1)) SWIG_fail;
17754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17755 if (!SWIG_IsOK(res1)) {
17756 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_as4_paths_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path *""'");
17759 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_libbgp__BgpAsPathSegment_t, 0 | 0 );
17760 if (!SWIG_IsOK(res2)) {
17761 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAs4Path_as4_paths_set" "', argument " "2"" of type '" "std::vector< libbgp::BgpAsPathSegment > *""'");
17763 arg2 =
reinterpret_cast< std::vector< libbgp::BgpAsPathSegment > *
>(argp2);
17764 if (arg1) (arg1)->as4_paths = *arg2;
17765 resultobj = SWIG_Py_Void();
17772 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_as4_paths_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17773 PyObject *resultobj = 0;
17777 PyObject * obj0 = 0 ;
17778 std::vector< libbgp::BgpAsPathSegment > *result = 0 ;
17780 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Path_as4_paths_get",&obj0)) SWIG_fail;
17781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17782 if (!SWIG_IsOK(res1)) {
17783 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_as4_paths_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path *""'");
17786 result = (std::vector< libbgp::BgpAsPathSegment > *)& ((arg1)->as4_paths);
17787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__BgpAsPathSegment_t, 0 | 0 );
17794 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_prepend(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17795 PyObject *resultobj = 0;
17800 unsigned int val2 ;
17802 PyObject * obj0 = 0 ;
17803 PyObject * obj1 = 0 ;
17806 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAs4Path_prepend",&obj0,&obj1)) SWIG_fail;
17807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17808 if (!SWIG_IsOK(res1)) {
17809 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_prepend" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path *""'");
17812 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17813 if (!SWIG_IsOK(ecode2)) {
17814 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAs4Path_prepend" "', argument " "2"" of type '" "uint32_t""'");
17816 arg2 =
static_cast< uint32_t
>(val2);
17817 result = (bool)(arg1)->prepend(arg2);
17818 resultobj = SWIG_From_bool(static_cast< bool >(result));
17825 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17826 PyObject *resultobj = 0;
17830 PyObject * obj0 = 0 ;
17833 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Path_clone",&obj0)) SWIG_fail;
17834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17835 if (!SWIG_IsOK(res1)) {
17836 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path const *""'");
17840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
17847 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17848 PyObject *resultobj = 0;
17850 uint8_t *arg2 = (uint8_t *) 0 ;
17858 PyObject * obj0 = 0 ;
17859 PyObject * obj1 = 0 ;
17860 PyObject * obj2 = 0 ;
17863 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAs4Path_parse",&obj0,&obj1,&obj2)) SWIG_fail;
17864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17865 if (!SWIG_IsOK(res1)) {
17866 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path *""'");
17869 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17870 if (!SWIG_IsOK(res2)) {
17871 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAs4Path_parse" "', argument " "2"" of type '" "uint8_t const *""'");
17873 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17874 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17875 if (!SWIG_IsOK(ecode3)) {
17876 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAs4Path_parse" "', argument " "3"" of type '" "size_t""'");
17878 arg3 =
static_cast< size_t >(val3);
17879 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
17880 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17887 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17888 PyObject *resultobj = 0;
17890 uint8_t *arg2 = (uint8_t *) 0 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 PyObject * obj2 = 0 ;
17903 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAs4Path_write",&obj0,&obj1,&obj2)) SWIG_fail;
17904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17905 if (!SWIG_IsOK(res1)) {
17906 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path const *""'");
17909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
17910 if (!SWIG_IsOK(res2)) {
17911 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAs4Path_write" "', argument " "2"" of type '" "uint8_t *""'");
17913 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
17914 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
17915 if (!SWIG_IsOK(ecode3)) {
17916 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAs4Path_write" "', argument " "3"" of type '" "size_t""'");
17918 arg3 =
static_cast< size_t >(val3);
17920 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17927 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17928 PyObject *resultobj = 0;
17931 uint8_t **arg3 = (uint8_t **) 0 ;
17932 size_t *arg4 = (
size_t *) 0 ;
17941 PyObject * obj0 = 0 ;
17942 PyObject * obj1 = 0 ;
17943 PyObject * obj2 = 0 ;
17944 PyObject * obj3 = 0 ;
17947 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribAs4Path_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path const *""'");
17953 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
17954 if (!SWIG_IsOK(ecode2)) {
17955 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAs4Path_doPrint" "', argument " "2"" of type '" "size_t""'");
17957 arg2 =
static_cast< size_t >(val2);
17958 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
17959 if (!SWIG_IsOK(res3)) {
17960 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribAs4Path_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
17962 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
17963 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
17964 if (!SWIG_IsOK(res4)) {
17965 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribAs4Path_doPrint" "', argument " "4"" of type '" "size_t *""'");
17967 arg4 =
reinterpret_cast< size_t *
>(argp4);
17969 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17976 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Path_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17977 PyObject *resultobj = 0;
17981 PyObject * obj0 = 0 ;
17984 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Path_length",&obj0)) SWIG_fail;
17985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, 0 | 0 );
17986 if (!SWIG_IsOK(res1)) {
17987 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Path_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path const *""'");
17991 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
17998 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribAs4Path(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
17999 PyObject *resultobj = 0;
18003 PyObject * obj0 = 0 ;
18005 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribAs4Path",&obj0)) SWIG_fail;
18006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, SWIG_POINTER_DISOWN | 0 );
18007 if (!SWIG_IsOK(res1)) {
18008 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribAs4Path" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Path *""'");
18012 resultobj = SWIG_Py_Void();
18019 SWIGINTERN PyObject *BgpPathAttribAs4Path_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18021 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
18022 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribAs4Path, SWIG_NewClientData(obj));
18023 return SWIG_Py_Void();
18026 SWIGINTERN PyObject *_wrap_new_BgpPathAttribAs4Aggregator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18027 PyObject *resultobj = 0;
18031 PyObject * obj0 = 0 ;
18034 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribAs4Aggregator",&obj0)) SWIG_fail;
18035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribAs4Aggregator" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
18041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, SWIG_POINTER_NEW | 0 );
18048 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_aggregator_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18049 PyObject *resultobj = 0;
18054 unsigned int val2 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18059 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAs4Aggregator_aggregator_set",&obj0,&obj1)) SWIG_fail;
18060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18061 if (!SWIG_IsOK(res1)) {
18062 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_aggregator_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator *""'");
18065 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
18066 if (!SWIG_IsOK(ecode2)) {
18067 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAs4Aggregator_aggregator_set" "', argument " "2"" of type '" "uint32_t""'");
18069 arg2 =
static_cast< uint32_t
>(val2);
18070 if (arg1) (arg1)->aggregator = arg2;
18071 resultobj = SWIG_Py_Void();
18078 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_aggregator_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18079 PyObject *resultobj = 0;
18083 PyObject * obj0 = 0 ;
18086 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Aggregator_aggregator_get",&obj0)) SWIG_fail;
18087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18088 if (!SWIG_IsOK(res1)) {
18089 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_aggregator_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator *""'");
18092 result = (uint32_t) ((arg1)->aggregator);
18093 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
18100 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_aggregator_asn4_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18101 PyObject *resultobj = 0;
18106 unsigned int val2 ;
18108 PyObject * obj0 = 0 ;
18109 PyObject * obj1 = 0 ;
18111 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribAs4Aggregator_aggregator_asn4_set",&obj0,&obj1)) SWIG_fail;
18112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18113 if (!SWIG_IsOK(res1)) {
18114 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_aggregator_asn4_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator *""'");
18117 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
18118 if (!SWIG_IsOK(ecode2)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAs4Aggregator_aggregator_asn4_set" "', argument " "2"" of type '" "uint32_t""'");
18121 arg2 =
static_cast< uint32_t
>(val2);
18122 if (arg1) (arg1)->aggregator_asn4 = arg2;
18123 resultobj = SWIG_Py_Void();
18130 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_aggregator_asn4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18131 PyObject *resultobj = 0;
18135 PyObject * obj0 = 0 ;
18138 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Aggregator_aggregator_asn4_get",&obj0)) SWIG_fail;
18139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18140 if (!SWIG_IsOK(res1)) {
18141 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_aggregator_asn4_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator *""'");
18144 result = (uint32_t) ((arg1)->aggregator_asn4);
18145 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
18152 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18153 PyObject *resultobj = 0;
18157 PyObject * obj0 = 0 ;
18160 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Aggregator_clone",&obj0)) SWIG_fail;
18161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18162 if (!SWIG_IsOK(res1)) {
18163 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator const *""'");
18167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
18174 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18175 PyObject *resultobj = 0;
18177 uint8_t *arg2 = (uint8_t *) 0 ;
18185 PyObject * obj0 = 0 ;
18186 PyObject * obj1 = 0 ;
18187 PyObject * obj2 = 0 ;
18190 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAs4Aggregator_parse",&obj0,&obj1,&obj2)) SWIG_fail;
18191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18192 if (!SWIG_IsOK(res1)) {
18193 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator *""'");
18196 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
18197 if (!SWIG_IsOK(res2)) {
18198 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAs4Aggregator_parse" "', argument " "2"" of type '" "uint8_t const *""'");
18200 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
18201 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
18202 if (!SWIG_IsOK(ecode3)) {
18203 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAs4Aggregator_parse" "', argument " "3"" of type '" "size_t""'");
18205 arg3 =
static_cast< size_t >(val3);
18206 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
18207 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18214 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18215 PyObject *resultobj = 0;
18217 uint8_t *arg2 = (uint8_t *) 0 ;
18225 PyObject * obj0 = 0 ;
18226 PyObject * obj1 = 0 ;
18227 PyObject * obj2 = 0 ;
18230 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribAs4Aggregator_write",&obj0,&obj1,&obj2)) SWIG_fail;
18231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18232 if (!SWIG_IsOK(res1)) {
18233 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator const *""'");
18236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
18237 if (!SWIG_IsOK(res2)) {
18238 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribAs4Aggregator_write" "', argument " "2"" of type '" "uint8_t *""'");
18240 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
18241 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
18242 if (!SWIG_IsOK(ecode3)) {
18243 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribAs4Aggregator_write" "', argument " "3"" of type '" "size_t""'");
18245 arg3 =
static_cast< size_t >(val3);
18247 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18254 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18255 PyObject *resultobj = 0;
18258 uint8_t **arg3 = (uint8_t **) 0 ;
18259 size_t *arg4 = (
size_t *) 0 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 PyObject * obj2 = 0 ;
18271 PyObject * obj3 = 0 ;
18274 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribAs4Aggregator_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18276 if (!SWIG_IsOK(res1)) {
18277 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator const *""'");
18280 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18281 if (!SWIG_IsOK(ecode2)) {
18282 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribAs4Aggregator_doPrint" "', argument " "2"" of type '" "size_t""'");
18284 arg2 =
static_cast< size_t >(val2);
18285 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
18286 if (!SWIG_IsOK(res3)) {
18287 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribAs4Aggregator_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
18289 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
18290 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
18291 if (!SWIG_IsOK(res4)) {
18292 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribAs4Aggregator_doPrint" "', argument " "4"" of type '" "size_t *""'");
18294 arg4 =
reinterpret_cast< size_t *
>(argp4);
18296 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18303 SWIGINTERN PyObject *_wrap_BgpPathAttribAs4Aggregator_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18304 PyObject *resultobj = 0;
18308 PyObject * obj0 = 0 ;
18311 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribAs4Aggregator_length",&obj0)) SWIG_fail;
18312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, 0 | 0 );
18313 if (!SWIG_IsOK(res1)) {
18314 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribAs4Aggregator_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator const *""'");
18318 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18325 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribAs4Aggregator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18326 PyObject *resultobj = 0;
18330 PyObject * obj0 = 0 ;
18332 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribAs4Aggregator",&obj0)) SWIG_fail;
18333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, SWIG_POINTER_DISOWN | 0 );
18334 if (!SWIG_IsOK(res1)) {
18335 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribAs4Aggregator" "', argument " "1"" of type '" "libbgp::BgpPathAttribAs4Aggregator *""'");
18339 resultobj = SWIG_Py_Void();
18346 SWIGINTERN PyObject *BgpPathAttribAs4Aggregator_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18348 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
18349 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribAs4Aggregator, SWIG_NewClientData(obj));
18350 return SWIG_Py_Void();
18353 SWIGINTERN PyObject *_wrap_new_BgpPathAttribCommunity(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18354 PyObject *resultobj = 0;
18358 PyObject * obj0 = 0 ;
18361 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribCommunity",&obj0)) SWIG_fail;
18362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
18363 if (!SWIG_IsOK(res1)) {
18364 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribCommunity" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
18368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribCommunity, SWIG_POINTER_NEW | 0 );
18375 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_communites_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18376 PyObject *resultobj = 0;
18378 std::vector< uint32_t > arg2 ;
18383 PyObject * obj0 = 0 ;
18384 PyObject * obj1 = 0 ;
18386 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribCommunity_communites_set",&obj0,&obj1)) SWIG_fail;
18387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18388 if (!SWIG_IsOK(res1)) {
18389 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_communites_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity *""'");
18393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_t, 0 | 0);
18394 if (!SWIG_IsOK(res2)) {
18395 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribCommunity_communites_set" "', argument " "2"" of type '" "std::vector< uint32_t >""'");
18398 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpPathAttribCommunity_communites_set" "', argument " "2"" of type '" "std::vector< uint32_t >""'");
18400 std::vector< uint32_t > * temp =
reinterpret_cast< std::vector< uint32_t > *
>(argp2);
18402 if (SWIG_IsNewObj(res2))
delete temp;
18405 if (arg1) (arg1)->communites = arg2;
18406 resultobj = SWIG_Py_Void();
18413 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_communites_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18414 PyObject *resultobj = 0;
18418 PyObject * obj0 = 0 ;
18419 std::vector< uint32_t > result;
18421 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribCommunity_communites_get",&obj0)) SWIG_fail;
18422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18423 if (!SWIG_IsOK(res1)) {
18424 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_communites_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity *""'");
18427 result = ((arg1)->communites);
18428 resultobj = SWIG_NewPointerObj((
new std::vector< uint32_t >(
static_cast< const std::vector< uint32_t >&
>(result))), SWIGTYPE_p_std__vectorT_unsigned_int_t, SWIG_POINTER_OWN | 0 );
18435 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18436 PyObject *resultobj = 0;
18440 PyObject * obj0 = 0 ;
18443 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribCommunity_clone",&obj0)) SWIG_fail;
18444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18445 if (!SWIG_IsOK(res1)) {
18446 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity const *""'");
18450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
18457 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18458 PyObject *resultobj = 0;
18460 uint8_t *arg2 = (uint8_t *) 0 ;
18468 PyObject * obj0 = 0 ;
18469 PyObject * obj1 = 0 ;
18470 PyObject * obj2 = 0 ;
18473 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribCommunity_parse",&obj0,&obj1,&obj2)) SWIG_fail;
18474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18475 if (!SWIG_IsOK(res1)) {
18476 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity *""'");
18479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
18480 if (!SWIG_IsOK(res2)) {
18481 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribCommunity_parse" "', argument " "2"" of type '" "uint8_t const *""'");
18483 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
18484 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
18485 if (!SWIG_IsOK(ecode3)) {
18486 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribCommunity_parse" "', argument " "3"" of type '" "size_t""'");
18488 arg3 =
static_cast< size_t >(val3);
18489 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
18490 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18497 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18498 PyObject *resultobj = 0;
18500 uint8_t *arg2 = (uint8_t *) 0 ;
18508 PyObject * obj0 = 0 ;
18509 PyObject * obj1 = 0 ;
18510 PyObject * obj2 = 0 ;
18513 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribCommunity_write",&obj0,&obj1,&obj2)) SWIG_fail;
18514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18515 if (!SWIG_IsOK(res1)) {
18516 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity const *""'");
18519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
18520 if (!SWIG_IsOK(res2)) {
18521 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribCommunity_write" "', argument " "2"" of type '" "uint8_t *""'");
18523 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
18524 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
18525 if (!SWIG_IsOK(ecode3)) {
18526 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribCommunity_write" "', argument " "3"" of type '" "size_t""'");
18528 arg3 =
static_cast< size_t >(val3);
18530 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18537 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18538 PyObject *resultobj = 0;
18541 uint8_t **arg3 = (uint8_t **) 0 ;
18542 size_t *arg4 = (
size_t *) 0 ;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 PyObject * obj2 = 0 ;
18554 PyObject * obj3 = 0 ;
18557 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribCommunity_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18559 if (!SWIG_IsOK(res1)) {
18560 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity const *""'");
18563 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18564 if (!SWIG_IsOK(ecode2)) {
18565 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribCommunity_doPrint" "', argument " "2"" of type '" "size_t""'");
18567 arg2 =
static_cast< size_t >(val2);
18568 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
18569 if (!SWIG_IsOK(res3)) {
18570 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribCommunity_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
18572 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
18573 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
18574 if (!SWIG_IsOK(res4)) {
18575 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribCommunity_doPrint" "', argument " "4"" of type '" "size_t *""'");
18577 arg4 =
reinterpret_cast< size_t *
>(argp4);
18579 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18586 SWIGINTERN PyObject *_wrap_BgpPathAttribCommunity_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18587 PyObject *resultobj = 0;
18591 PyObject * obj0 = 0 ;
18594 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribCommunity_length",&obj0)) SWIG_fail;
18595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, 0 | 0 );
18596 if (!SWIG_IsOK(res1)) {
18597 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribCommunity_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity const *""'");
18601 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
18608 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribCommunity(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18609 PyObject *resultobj = 0;
18613 PyObject * obj0 = 0 ;
18615 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribCommunity",&obj0)) SWIG_fail;
18616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribCommunity, SWIG_POINTER_DISOWN | 0 );
18617 if (!SWIG_IsOK(res1)) {
18618 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribCommunity" "', argument " "1"" of type '" "libbgp::BgpPathAttribCommunity *""'");
18622 resultobj = SWIG_Py_Void();
18629 SWIGINTERN PyObject *BgpPathAttribCommunity_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18631 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
18632 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribCommunity, SWIG_NewClientData(obj));
18633 return SWIG_Py_Void();
18636 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpNlriBase(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18637 PyObject *resultobj = 0;
18641 PyObject * obj0 = 0 ;
18644 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribMpNlriBase",&obj0)) SWIG_fail;
18645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
18646 if (!SWIG_IsOK(res1)) {
18647 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpNlriBase" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
18651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, SWIG_POINTER_NEW | 0 );
18658 SWIGINTERN PyObject *_wrap_BgpPathAttribMpNlriBase_GetAfiFromBuffer(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18659 PyObject *resultobj = 0;
18660 uint8_t *arg1 = (uint8_t *) 0 ;
18666 PyObject * obj0 = 0 ;
18667 PyObject * obj1 = 0 ;
18670 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpNlriBase_GetAfiFromBuffer",&obj0,&obj1)) SWIG_fail;
18671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 );
18672 if (!SWIG_IsOK(res1)) {
18673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpNlriBase_GetAfiFromBuffer" "', argument " "1"" of type '" "uint8_t const *""'");
18675 arg1 =
reinterpret_cast< uint8_t *
>(argp1);
18676 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18677 if (!SWIG_IsOK(ecode2)) {
18678 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpNlriBase_GetAfiFromBuffer" "', argument " "2"" of type '" "size_t""'");
18680 arg2 =
static_cast< size_t >(val2);
18681 result = (int16_t)libbgp::BgpPathAttribMpNlriBase::GetAfiFromBuffer((
unsigned char const *)arg1,arg2);
18682 resultobj = SWIG_From_short(static_cast< short >(result));
18689 SWIGINTERN PyObject *_wrap_BgpPathAttribMpNlriBase_afi_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18690 PyObject *resultobj = 0;
18695 unsigned short val2 ;
18697 PyObject * obj0 = 0 ;
18698 PyObject * obj1 = 0 ;
18700 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpNlriBase_afi_set",&obj0,&obj1)) SWIG_fail;
18701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, 0 | 0 );
18702 if (!SWIG_IsOK(res1)) {
18703 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpNlriBase_afi_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpNlriBase *""'");
18706 ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2);
18707 if (!SWIG_IsOK(ecode2)) {
18708 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpNlriBase_afi_set" "', argument " "2"" of type '" "uint16_t""'");
18710 arg2 =
static_cast< uint16_t
>(val2);
18711 if (arg1) (arg1)->afi = arg2;
18712 resultobj = SWIG_Py_Void();
18719 SWIGINTERN PyObject *_wrap_BgpPathAttribMpNlriBase_afi_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18720 PyObject *resultobj = 0;
18724 PyObject * obj0 = 0 ;
18727 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpNlriBase_afi_get",&obj0)) SWIG_fail;
18728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, 0 | 0 );
18729 if (!SWIG_IsOK(res1)) {
18730 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpNlriBase_afi_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpNlriBase *""'");
18733 result = (uint16_t) ((arg1)->afi);
18734 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
18741 SWIGINTERN PyObject *_wrap_BgpPathAttribMpNlriBase_safi_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18742 PyObject *resultobj = 0;
18747 unsigned char val2 ;
18749 PyObject * obj0 = 0 ;
18750 PyObject * obj1 = 0 ;
18752 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpNlriBase_safi_set",&obj0,&obj1)) SWIG_fail;
18753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, 0 | 0 );
18754 if (!SWIG_IsOK(res1)) {
18755 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpNlriBase_safi_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpNlriBase *""'");
18758 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
18759 if (!SWIG_IsOK(ecode2)) {
18760 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpNlriBase_safi_set" "', argument " "2"" of type '" "uint8_t""'");
18762 arg2 =
static_cast< uint8_t
>(val2);
18763 if (arg1) (arg1)->safi = arg2;
18764 resultobj = SWIG_Py_Void();
18771 SWIGINTERN PyObject *_wrap_BgpPathAttribMpNlriBase_safi_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18772 PyObject *resultobj = 0;
18776 PyObject * obj0 = 0 ;
18779 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpNlriBase_safi_get",&obj0)) SWIG_fail;
18780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, 0 | 0 );
18781 if (!SWIG_IsOK(res1)) {
18782 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpNlriBase_safi_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpNlriBase *""'");
18785 result = (uint8_t) ((arg1)->safi);
18786 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18793 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribMpNlriBase(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18794 PyObject *resultobj = 0;
18798 PyObject * obj0 = 0 ;
18800 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribMpNlriBase",&obj0)) SWIG_fail;
18801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, SWIG_POINTER_DISOWN | 0 );
18802 if (!SWIG_IsOK(res1)) {
18803 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribMpNlriBase" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpNlriBase *""'");
18807 resultobj = SWIG_Py_Void();
18814 SWIGINTERN PyObject *BgpPathAttribMpNlriBase_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18816 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
18817 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribMpNlriBase, SWIG_NewClientData(obj));
18818 return SWIG_Py_Void();
18821 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpReachNlriIpv6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18822 PyObject *resultobj = 0;
18826 PyObject * obj0 = 0 ;
18829 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribMpReachNlriIpv6",&obj0)) SWIG_fail;
18830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
18831 if (!SWIG_IsOK(res1)) {
18832 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpReachNlriIpv6" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
18836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, SWIG_POINTER_NEW | 0 );
18843 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_nexthop_global_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18844 PyObject *resultobj = 0;
18851 PyObject * obj0 = 0 ;
18852 PyObject * obj1 = 0 ;
18854 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpReachNlriIpv6_nexthop_global_set",&obj0,&obj1)) SWIG_fail;
18855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
18856 if (!SWIG_IsOK(res1)) {
18857 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_nexthop_global_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
18860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
18861 if (!SWIG_IsOK(res2)) {
18862 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriIpv6_nexthop_global_set" "', argument " "2"" of type '" "uint8_t [16]""'");
18864 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
18868 for (; ii < (size_t)16; ++ii) *(uint8_t *)&arg1->nexthop_global[ii] = *((uint8_t *)arg2 + ii);
18870 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""nexthop_global""' of type '""uint8_t [16]""'");
18873 resultobj = SWIG_Py_Void();
18880 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_nexthop_global_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18881 PyObject *resultobj = 0;
18885 PyObject * obj0 = 0 ;
18886 uint8_t *result = 0 ;
18888 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriIpv6_nexthop_global_get",&obj0)) SWIG_fail;
18889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
18890 if (!SWIG_IsOK(res1)) {
18891 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_nexthop_global_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
18894 result = (uint8_t *)(uint8_t *) ((arg1)->nexthop_global);
18895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
18902 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18903 PyObject *resultobj = 0;
18910 PyObject * obj0 = 0 ;
18911 PyObject * obj1 = 0 ;
18913 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_set",&obj0,&obj1)) SWIG_fail;
18914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
18915 if (!SWIG_IsOK(res1)) {
18916 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
18919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
18920 if (!SWIG_IsOK(res2)) {
18921 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_set" "', argument " "2"" of type '" "uint8_t [16]""'");
18923 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
18927 for (; ii < (size_t)16; ++ii) *(uint8_t *)&arg1->nexthop_linklocal[ii] = *((uint8_t *)arg2 + ii);
18929 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""nexthop_linklocal""' of type '""uint8_t [16]""'");
18932 resultobj = SWIG_Py_Void();
18939 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18940 PyObject *resultobj = 0;
18944 PyObject * obj0 = 0 ;
18945 uint8_t *result = 0 ;
18947 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_get",&obj0)) SWIG_fail;
18948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
18949 if (!SWIG_IsOK(res1)) {
18950 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
18953 result = (uint8_t *)(uint8_t *) ((arg1)->nexthop_linklocal);
18954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
18961 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_nlri_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18962 PyObject *resultobj = 0;
18964 std::vector< libbgp::Prefix6 > *arg2 = (std::vector< libbgp::Prefix6 > *) 0 ;
18969 PyObject * obj0 = 0 ;
18970 PyObject * obj1 = 0 ;
18972 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpReachNlriIpv6_nlri_set",&obj0,&obj1)) SWIG_fail;
18973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
18974 if (!SWIG_IsOK(res1)) {
18975 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_nlri_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
18978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0 );
18979 if (!SWIG_IsOK(res2)) {
18980 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriIpv6_nlri_set" "', argument " "2"" of type '" "std::vector< libbgp::Prefix6 > *""'");
18982 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp2);
18983 if (arg1) (arg1)->nlri = *arg2;
18984 resultobj = SWIG_Py_Void();
18991 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_nlri_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
18992 PyObject *resultobj = 0;
18996 PyObject * obj0 = 0 ;
18997 std::vector< libbgp::Prefix6 > *result = 0 ;
18999 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriIpv6_nlri_get",&obj0)) SWIG_fail;
19000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
19001 if (!SWIG_IsOK(res1)) {
19002 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_nlri_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
19005 result = (std::vector< libbgp::Prefix6 > *)& ((arg1)->nlri);
19006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0 );
19013 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19014 PyObject *resultobj = 0;
19018 PyObject * obj0 = 0 ;
19021 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriIpv6_clone",&obj0)) SWIG_fail;
19022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
19023 if (!SWIG_IsOK(res1)) {
19024 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 const *""'");
19028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
19035 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19036 PyObject *resultobj = 0;
19038 uint8_t *arg2 = (uint8_t *) 0 ;
19046 PyObject * obj0 = 0 ;
19047 PyObject * obj1 = 0 ;
19048 PyObject * obj2 = 0 ;
19051 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpReachNlriIpv6_parse",&obj0,&obj1,&obj2)) SWIG_fail;
19052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
19053 if (!SWIG_IsOK(res1)) {
19054 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
19057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19058 if (!SWIG_IsOK(res2)) {
19059 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriIpv6_parse" "', argument " "2"" of type '" "uint8_t const *""'");
19061 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19062 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19063 if (!SWIG_IsOK(ecode3)) {
19064 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpReachNlriIpv6_parse" "', argument " "3"" of type '" "size_t""'");
19066 arg3 =
static_cast< size_t >(val3);
19067 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
19068 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19075 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19076 PyObject *resultobj = 0;
19078 uint8_t *arg2 = (uint8_t *) 0 ;
19086 PyObject * obj0 = 0 ;
19087 PyObject * obj1 = 0 ;
19088 PyObject * obj2 = 0 ;
19091 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpReachNlriIpv6_write",&obj0,&obj1,&obj2)) SWIG_fail;
19092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
19093 if (!SWIG_IsOK(res1)) {
19094 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 const *""'");
19097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19098 if (!SWIG_IsOK(res2)) {
19099 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriIpv6_write" "', argument " "2"" of type '" "uint8_t *""'");
19101 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19102 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19103 if (!SWIG_IsOK(ecode3)) {
19104 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpReachNlriIpv6_write" "', argument " "3"" of type '" "size_t""'");
19106 arg3 =
static_cast< size_t >(val3);
19108 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19115 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19116 PyObject *resultobj = 0;
19119 uint8_t **arg3 = (uint8_t **) 0 ;
19120 size_t *arg4 = (
size_t *) 0 ;
19129 PyObject * obj0 = 0 ;
19130 PyObject * obj1 = 0 ;
19131 PyObject * obj2 = 0 ;
19132 PyObject * obj3 = 0 ;
19135 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribMpReachNlriIpv6_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
19137 if (!SWIG_IsOK(res1)) {
19138 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 const *""'");
19141 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19142 if (!SWIG_IsOK(ecode2)) {
19143 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpReachNlriIpv6_doPrint" "', argument " "2"" of type '" "size_t""'");
19145 arg2 =
static_cast< size_t >(val2);
19146 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
19147 if (!SWIG_IsOK(res3)) {
19148 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribMpReachNlriIpv6_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
19150 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
19151 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
19152 if (!SWIG_IsOK(res4)) {
19153 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribMpReachNlriIpv6_doPrint" "', argument " "4"" of type '" "size_t *""'");
19155 arg4 =
reinterpret_cast< size_t *
>(argp4);
19157 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19164 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriIpv6_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19165 PyObject *resultobj = 0;
19169 PyObject * obj0 = 0 ;
19172 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriIpv6_length",&obj0)) SWIG_fail;
19173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, 0 | 0 );
19174 if (!SWIG_IsOK(res1)) {
19175 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriIpv6_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 const *""'");
19179 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19186 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribMpReachNlriIpv6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19187 PyObject *resultobj = 0;
19191 PyObject * obj0 = 0 ;
19193 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribMpReachNlriIpv6",&obj0)) SWIG_fail;
19194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, SWIG_POINTER_DISOWN | 0 );
19195 if (!SWIG_IsOK(res1)) {
19196 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribMpReachNlriIpv6" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriIpv6 *""'");
19200 resultobj = SWIG_Py_Void();
19207 SWIGINTERN PyObject *BgpPathAttribMpReachNlriIpv6_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19209 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
19210 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriIpv6, SWIG_NewClientData(obj));
19211 return SWIG_Py_Void();
19214 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpReachNlriUnknow__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19215 PyObject *resultobj = 0;
19219 PyObject * obj0 = 0 ;
19222 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribMpReachNlriUnknow",&obj0)) SWIG_fail;
19223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
19224 if (!SWIG_IsOK(res1)) {
19225 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpReachNlriUnknow" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
19229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, SWIG_POINTER_NEW | 0 );
19236 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpReachNlriUnknow__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19237 PyObject *resultobj = 0;
19239 uint8_t *arg2 = (uint8_t *) 0 ;
19241 uint8_t *arg4 = (uint8_t *) 0 ;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 PyObject * obj2 = 0 ;
19256 PyObject * obj3 = 0 ;
19257 PyObject * obj4 = 0 ;
19260 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_BgpPathAttribMpReachNlriUnknow",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
19262 if (!SWIG_IsOK(res1)) {
19263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpReachNlriUnknow" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
19266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19267 if (!SWIG_IsOK(res2)) {
19268 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_BgpPathAttribMpReachNlriUnknow" "', argument " "2"" of type '" "uint8_t const *""'");
19270 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19271 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19272 if (!SWIG_IsOK(ecode3)) {
19273 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpPathAttribMpReachNlriUnknow" "', argument " "3"" of type '" "size_t""'");
19275 arg3 =
static_cast< size_t >(val3);
19276 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
19277 if (!SWIG_IsOK(res4)) {
19278 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_BgpPathAttribMpReachNlriUnknow" "', argument " "4"" of type '" "uint8_t const *""'");
19280 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
19281 ecode5 = SWIG_AsVal_size_t(obj4, &val5);
19282 if (!SWIG_IsOK(ecode5)) {
19283 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "new_BgpPathAttribMpReachNlriUnknow" "', argument " "5"" of type '" "size_t""'");
19285 arg5 =
static_cast< size_t >(val5);
19287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, SWIG_POINTER_NEW | 0 );
19294 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpReachNlriUnknow(PyObject *
self, PyObject *args) {
19296 PyObject *argv[6] = {
19301 if (!PyTuple_Check(args)) SWIG_fail;
19302 argc = args ? PyObject_Length(args) : 0;
19303 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
19304 argv[ii] = PyTuple_GET_ITEM(args,ii);
19309 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
19310 _v = SWIG_CheckState(res);
19312 return _wrap_new_BgpPathAttribMpReachNlriUnknow__SWIG_0(
self, args);
19318 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
19319 _v = SWIG_CheckState(res);
19322 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
19323 _v = SWIG_CheckState(res);
19326 int res = SWIG_AsVal_size_t(argv[2], NULL);
19327 _v = SWIG_CheckState(res);
19331 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
19332 _v = SWIG_CheckState(res);
19335 int res = SWIG_AsVal_size_t(argv[4], NULL);
19336 _v = SWIG_CheckState(res);
19339 return _wrap_new_BgpPathAttribMpReachNlriUnknow__SWIG_1(
self, args);
19348 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpPathAttribMpReachNlriUnknow'.\n" 19349 " Possible C/C++ prototypes are:\n" 19350 " libbgp::BgpPathAttribMpReachNlriUnknow::BgpPathAttribMpReachNlriUnknow(libbgp::BgpLogHandler *)\n" 19351 " libbgp::BgpPathAttribMpReachNlriUnknow::BgpPathAttribMpReachNlriUnknow(libbgp::BgpLogHandler *,uint8_t const *,size_t,uint8_t const *,size_t)\n");
19356 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribMpReachNlriUnknow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19357 PyObject *resultobj = 0;
19361 PyObject * obj0 = 0 ;
19363 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribMpReachNlriUnknow",&obj0)) SWIG_fail;
19364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, SWIG_POINTER_DISOWN | 0 );
19365 if (!SWIG_IsOK(res1)) {
19366 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribMpReachNlriUnknow" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow *""'");
19370 resultobj = SWIG_Py_Void();
19377 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19378 PyObject *resultobj = 0;
19382 PyObject * obj0 = 0 ;
19385 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriUnknow_clone",&obj0)) SWIG_fail;
19386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19387 if (!SWIG_IsOK(res1)) {
19388 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
19399 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19400 PyObject *resultobj = 0;
19402 uint8_t *arg2 = (uint8_t *) 0 ;
19410 PyObject * obj0 = 0 ;
19411 PyObject * obj1 = 0 ;
19412 PyObject * obj2 = 0 ;
19415 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpReachNlriUnknow_parse",&obj0,&obj1,&obj2)) SWIG_fail;
19416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19417 if (!SWIG_IsOK(res1)) {
19418 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow *""'");
19421 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19422 if (!SWIG_IsOK(res2)) {
19423 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriUnknow_parse" "', argument " "2"" of type '" "uint8_t const *""'");
19425 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19426 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19427 if (!SWIG_IsOK(ecode3)) {
19428 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpReachNlriUnknow_parse" "', argument " "3"" of type '" "size_t""'");
19430 arg3 =
static_cast< size_t >(val3);
19431 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
19432 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19439 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19440 PyObject *resultobj = 0;
19442 uint8_t *arg2 = (uint8_t *) 0 ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 PyObject * obj2 = 0 ;
19455 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpReachNlriUnknow_write",&obj0,&obj1,&obj2)) SWIG_fail;
19456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19457 if (!SWIG_IsOK(res1)) {
19458 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19461 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19462 if (!SWIG_IsOK(res2)) {
19463 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpReachNlriUnknow_write" "', argument " "2"" of type '" "uint8_t *""'");
19465 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19466 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19467 if (!SWIG_IsOK(ecode3)) {
19468 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpReachNlriUnknow_write" "', argument " "3"" of type '" "size_t""'");
19470 arg3 =
static_cast< size_t >(val3);
19472 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19479 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19480 PyObject *resultobj = 0;
19483 uint8_t **arg3 = (uint8_t **) 0 ;
19484 size_t *arg4 = (
size_t *) 0 ;
19493 PyObject * obj0 = 0 ;
19494 PyObject * obj1 = 0 ;
19495 PyObject * obj2 = 0 ;
19496 PyObject * obj3 = 0 ;
19499 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribMpReachNlriUnknow_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19501 if (!SWIG_IsOK(res1)) {
19502 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19505 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19506 if (!SWIG_IsOK(ecode2)) {
19507 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpReachNlriUnknow_doPrint" "', argument " "2"" of type '" "size_t""'");
19509 arg2 =
static_cast< size_t >(val2);
19510 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
19511 if (!SWIG_IsOK(res3)) {
19512 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribMpReachNlriUnknow_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
19514 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
19515 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
19516 if (!SWIG_IsOK(res4)) {
19517 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribMpReachNlriUnknow_doPrint" "', argument " "4"" of type '" "size_t *""'");
19519 arg4 =
reinterpret_cast< size_t *
>(argp4);
19521 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19528 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19529 PyObject *resultobj = 0;
19533 PyObject * obj0 = 0 ;
19536 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriUnknow_length",&obj0)) SWIG_fail;
19537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19543 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19550 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_getNexthop(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19551 PyObject *resultobj = 0;
19555 PyObject * obj0 = 0 ;
19556 uint8_t *result = 0 ;
19558 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriUnknow_getNexthop",&obj0)) SWIG_fail;
19559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19560 if (!SWIG_IsOK(res1)) {
19561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_getNexthop" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
19572 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_getNlri(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19573 PyObject *resultobj = 0;
19577 PyObject * obj0 = 0 ;
19578 uint8_t *result = 0 ;
19580 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriUnknow_getNlri",&obj0)) SWIG_fail;
19581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19582 if (!SWIG_IsOK(res1)) {
19583 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_getNlri" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
19594 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_getNexthopLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19595 PyObject *resultobj = 0;
19599 PyObject * obj0 = 0 ;
19602 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriUnknow_getNexthopLength",&obj0)) SWIG_fail;
19603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19604 if (!SWIG_IsOK(res1)) {
19605 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_getNexthopLength" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19609 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19616 SWIGINTERN PyObject *_wrap_BgpPathAttribMpReachNlriUnknow_getNlriLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19617 PyObject *resultobj = 0;
19621 PyObject * obj0 = 0 ;
19624 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpReachNlriUnknow_getNlriLength",&obj0)) SWIG_fail;
19625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, 0 | 0 );
19626 if (!SWIG_IsOK(res1)) {
19627 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpReachNlriUnknow_getNlriLength" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpReachNlriUnknow const *""'");
19631 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19638 SWIGINTERN PyObject *BgpPathAttribMpReachNlriUnknow_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19640 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
19641 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribMpReachNlriUnknow, SWIG_NewClientData(obj));
19642 return SWIG_Py_Void();
19645 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpUnreachNlriIpv6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19646 PyObject *resultobj = 0;
19650 PyObject * obj0 = 0 ;
19653 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribMpUnreachNlriIpv6",&obj0)) SWIG_fail;
19654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
19655 if (!SWIG_IsOK(res1)) {
19656 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpUnreachNlriIpv6" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
19660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, SWIG_POINTER_NEW | 0 );
19667 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19668 PyObject *resultobj = 0;
19670 std::vector< libbgp::Prefix6 > *arg2 = (std::vector< libbgp::Prefix6 > *) 0 ;
19675 PyObject * obj0 = 0 ;
19676 PyObject * obj1 = 0 ;
19678 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_set",&obj0,&obj1)) SWIG_fail;
19679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19680 if (!SWIG_IsOK(res1)) {
19681 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_set" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 *""'");
19684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0 );
19685 if (!SWIG_IsOK(res2)) {
19686 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_set" "', argument " "2"" of type '" "std::vector< libbgp::Prefix6 > *""'");
19688 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp2);
19689 if (arg1) (arg1)->withdrawn_routes = *arg2;
19690 resultobj = SWIG_Py_Void();
19697 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19698 PyObject *resultobj = 0;
19702 PyObject * obj0 = 0 ;
19703 std::vector< libbgp::Prefix6 > *result = 0 ;
19705 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_get",&obj0)) SWIG_fail;
19706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19707 if (!SWIG_IsOK(res1)) {
19708 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_get" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 *""'");
19711 result = (std::vector< libbgp::Prefix6 > *)& ((arg1)->withdrawn_routes);
19712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0 );
19719 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19720 PyObject *resultobj = 0;
19724 PyObject * obj0 = 0 ;
19727 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriIpv6_clone",&obj0)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 const *""'");
19734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
19741 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19742 PyObject *resultobj = 0;
19744 uint8_t *arg2 = (uint8_t *) 0 ;
19752 PyObject * obj0 = 0 ;
19753 PyObject * obj1 = 0 ;
19754 PyObject * obj2 = 0 ;
19757 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpUnreachNlriIpv6_parse",&obj0,&obj1,&obj2)) SWIG_fail;
19758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19759 if (!SWIG_IsOK(res1)) {
19760 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 *""'");
19763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19764 if (!SWIG_IsOK(res2)) {
19765 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_parse" "', argument " "2"" of type '" "uint8_t const *""'");
19767 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19768 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19769 if (!SWIG_IsOK(ecode3)) {
19770 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_parse" "', argument " "3"" of type '" "size_t""'");
19772 arg3 =
static_cast< size_t >(val3);
19773 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
19774 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19781 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19782 PyObject *resultobj = 0;
19784 uint8_t *arg2 = (uint8_t *) 0 ;
19792 PyObject * obj0 = 0 ;
19793 PyObject * obj1 = 0 ;
19794 PyObject * obj2 = 0 ;
19797 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpUnreachNlriIpv6_write",&obj0,&obj1,&obj2)) SWIG_fail;
19798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19799 if (!SWIG_IsOK(res1)) {
19800 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 const *""'");
19803 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19804 if (!SWIG_IsOK(res2)) {
19805 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_write" "', argument " "2"" of type '" "uint8_t *""'");
19807 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19808 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19809 if (!SWIG_IsOK(ecode3)) {
19810 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_write" "', argument " "3"" of type '" "size_t""'");
19812 arg3 =
static_cast< size_t >(val3);
19814 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19821 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19822 PyObject *resultobj = 0;
19825 uint8_t **arg3 = (uint8_t **) 0 ;
19826 size_t *arg4 = (
size_t *) 0 ;
19835 PyObject * obj0 = 0 ;
19836 PyObject * obj1 = 0 ;
19837 PyObject * obj2 = 0 ;
19838 PyObject * obj3 = 0 ;
19841 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribMpUnreachNlriIpv6_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19843 if (!SWIG_IsOK(res1)) {
19844 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 const *""'");
19847 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19848 if (!SWIG_IsOK(ecode2)) {
19849 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_doPrint" "', argument " "2"" of type '" "size_t""'");
19851 arg2 =
static_cast< size_t >(val2);
19852 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
19853 if (!SWIG_IsOK(res3)) {
19854 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
19856 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
19857 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
19858 if (!SWIG_IsOK(res4)) {
19859 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_doPrint" "', argument " "4"" of type '" "size_t *""'");
19861 arg4 =
reinterpret_cast< size_t *
>(argp4);
19863 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19870 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriIpv6_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19871 PyObject *resultobj = 0;
19875 PyObject * obj0 = 0 ;
19878 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriIpv6_length",&obj0)) SWIG_fail;
19879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0 | 0 );
19880 if (!SWIG_IsOK(res1)) {
19881 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriIpv6_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 const *""'");
19885 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
19892 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribMpUnreachNlriIpv6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19893 PyObject *resultobj = 0;
19897 PyObject * obj0 = 0 ;
19899 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribMpUnreachNlriIpv6",&obj0)) SWIG_fail;
19900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, SWIG_POINTER_DISOWN | 0 );
19901 if (!SWIG_IsOK(res1)) {
19902 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribMpUnreachNlriIpv6" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriIpv6 *""'");
19906 resultobj = SWIG_Py_Void();
19913 SWIGINTERN PyObject *BgpPathAttribMpUnreachNlriIpv6_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19915 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
19916 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriIpv6, SWIG_NewClientData(obj));
19917 return SWIG_Py_Void();
19920 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpUnreachNlriUnknow__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19921 PyObject *resultobj = 0;
19925 PyObject * obj0 = 0 ;
19928 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpPathAttribMpUnreachNlriUnknow",&obj0)) SWIG_fail;
19929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
19930 if (!SWIG_IsOK(res1)) {
19931 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpUnreachNlriUnknow" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
19935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, SWIG_POINTER_NEW | 0 );
19942 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpUnreachNlriUnknow__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
19943 PyObject *resultobj = 0;
19945 uint8_t *arg2 = (uint8_t *) 0 ;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 PyObject * obj2 = 0 ;
19958 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpPathAttribMpUnreachNlriUnknow",&obj0,&obj1,&obj2)) SWIG_fail;
19959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
19960 if (!SWIG_IsOK(res1)) {
19961 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpPathAttribMpUnreachNlriUnknow" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
19964 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
19965 if (!SWIG_IsOK(res2)) {
19966 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "new_BgpPathAttribMpUnreachNlriUnknow" "', argument " "2"" of type '" "uint8_t const *""'");
19968 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
19969 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
19970 if (!SWIG_IsOK(ecode3)) {
19971 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "new_BgpPathAttribMpUnreachNlriUnknow" "', argument " "3"" of type '" "size_t""'");
19973 arg3 =
static_cast< size_t >(val3);
19975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, SWIG_POINTER_NEW | 0 );
19982 SWIGINTERN PyObject *_wrap_new_BgpPathAttribMpUnreachNlriUnknow(PyObject *
self, PyObject *args) {
19984 PyObject *argv[4] = {
19989 if (!PyTuple_Check(args)) SWIG_fail;
19990 argc = args ? PyObject_Length(args) : 0;
19991 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
19992 argv[ii] = PyTuple_GET_ITEM(args,ii);
19997 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
19998 _v = SWIG_CheckState(res);
20000 return _wrap_new_BgpPathAttribMpUnreachNlriUnknow__SWIG_0(
self, args);
20006 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
20007 _v = SWIG_CheckState(res);
20010 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
20011 _v = SWIG_CheckState(res);
20014 int res = SWIG_AsVal_size_t(argv[2], NULL);
20015 _v = SWIG_CheckState(res);
20018 return _wrap_new_BgpPathAttribMpUnreachNlriUnknow__SWIG_1(
self, args);
20025 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'new_BgpPathAttribMpUnreachNlriUnknow'.\n" 20026 " Possible C/C++ prototypes are:\n" 20027 " libbgp::BgpPathAttribMpUnreachNlriUnknow::BgpPathAttribMpUnreachNlriUnknow(libbgp::BgpLogHandler *)\n" 20028 " libbgp::BgpPathAttribMpUnreachNlriUnknow::BgpPathAttribMpUnreachNlriUnknow(libbgp::BgpLogHandler *,uint8_t const *,size_t)\n");
20033 SWIGINTERN PyObject *_wrap_delete_BgpPathAttribMpUnreachNlriUnknow(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20034 PyObject *resultobj = 0;
20038 PyObject * obj0 = 0 ;
20040 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpPathAttribMpUnreachNlriUnknow",&obj0)) SWIG_fail;
20041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, SWIG_POINTER_DISOWN | 0 );
20042 if (!SWIG_IsOK(res1)) {
20043 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpPathAttribMpUnreachNlriUnknow" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow *""'");
20047 resultobj = SWIG_Py_Void();
20054 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_clone(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20055 PyObject *resultobj = 0;
20059 PyObject * obj0 = 0 ;
20062 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriUnknow_clone",&obj0)) SWIG_fail;
20063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20064 if (!SWIG_IsOK(res1)) {
20065 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_clone" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow const *""'");
20069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
20076 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20077 PyObject *resultobj = 0;
20079 uint8_t *arg2 = (uint8_t *) 0 ;
20087 PyObject * obj0 = 0 ;
20088 PyObject * obj1 = 0 ;
20089 PyObject * obj2 = 0 ;
20092 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpUnreachNlriUnknow_parse",&obj0,&obj1,&obj2)) SWIG_fail;
20093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20094 if (!SWIG_IsOK(res1)) {
20095 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_parse" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow *""'");
20098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
20099 if (!SWIG_IsOK(res2)) {
20100 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_parse" "', argument " "2"" of type '" "uint8_t const *""'");
20102 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
20103 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20104 if (!SWIG_IsOK(ecode3)) {
20105 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_parse" "', argument " "3"" of type '" "size_t""'");
20107 arg3 =
static_cast< size_t >(val3);
20108 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
20109 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
20116 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20117 PyObject *resultobj = 0;
20119 uint8_t *arg2 = (uint8_t *) 0 ;
20127 PyObject * obj0 = 0 ;
20128 PyObject * obj1 = 0 ;
20129 PyObject * obj2 = 0 ;
20132 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpPathAttribMpUnreachNlriUnknow_write",&obj0,&obj1,&obj2)) SWIG_fail;
20133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20134 if (!SWIG_IsOK(res1)) {
20135 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_write" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow const *""'");
20138 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
20139 if (!SWIG_IsOK(res2)) {
20140 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_write" "', argument " "2"" of type '" "uint8_t *""'");
20142 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
20143 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20144 if (!SWIG_IsOK(ecode3)) {
20145 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_write" "', argument " "3"" of type '" "size_t""'");
20147 arg3 =
static_cast< size_t >(val3);
20149 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
20156 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20157 PyObject *resultobj = 0;
20160 uint8_t **arg3 = (uint8_t **) 0 ;
20161 size_t *arg4 = (
size_t *) 0 ;
20170 PyObject * obj0 = 0 ;
20171 PyObject * obj1 = 0 ;
20172 PyObject * obj2 = 0 ;
20173 PyObject * obj3 = 0 ;
20176 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpPathAttribMpUnreachNlriUnknow_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20178 if (!SWIG_IsOK(res1)) {
20179 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_doPrint" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow const *""'");
20182 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20183 if (!SWIG_IsOK(ecode2)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_doPrint" "', argument " "2"" of type '" "size_t""'");
20186 arg2 =
static_cast< size_t >(val2);
20187 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
20188 if (!SWIG_IsOK(res3)) {
20189 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
20191 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
20192 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
20193 if (!SWIG_IsOK(res4)) {
20194 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_doPrint" "', argument " "4"" of type '" "size_t *""'");
20196 arg4 =
reinterpret_cast< size_t *
>(argp4);
20198 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
20205 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_length(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20206 PyObject *resultobj = 0;
20210 PyObject * obj0 = 0 ;
20213 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriUnknow_length",&obj0)) SWIG_fail;
20214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20215 if (!SWIG_IsOK(res1)) {
20216 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_length" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow const *""'");
20220 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
20227 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutes(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20228 PyObject *resultobj = 0;
20232 PyObject * obj0 = 0 ;
20233 uint8_t *result = 0 ;
20235 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutes",&obj0)) SWIG_fail;
20236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20237 if (!SWIG_IsOK(res1)) {
20238 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutes" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow const *""'");
20242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
20249 SWIGINTERN PyObject *_wrap_BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutesLength(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20250 PyObject *resultobj = 0;
20254 PyObject * obj0 = 0 ;
20257 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutesLength",&obj0)) SWIG_fail;
20258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0 | 0 );
20259 if (!SWIG_IsOK(res1)) {
20260 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutesLength" "', argument " "1"" of type '" "libbgp::BgpPathAttribMpUnreachNlriUnknow const *""'");
20264 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20271 SWIGINTERN PyObject *BgpPathAttribMpUnreachNlriUnknow_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20273 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
20274 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpPathAttribMpUnreachNlriUnknow, SWIG_NewClientData(obj));
20275 return SWIG_Py_Void();
20278 SWIGINTERN PyObject *_wrap_Rib6Entry_src_router_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20279 PyObject *resultobj = 0;
20284 unsigned int val2 ;
20286 PyObject * obj0 = 0 ;
20287 PyObject * obj1 = 0 ;
20289 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib6Entry_src_router_id_set",&obj0,&obj1)) SWIG_fail;
20290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20291 if (!SWIG_IsOK(res1)) {
20292 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_src_router_id_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20295 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
20296 if (!SWIG_IsOK(ecode2)) {
20297 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Rib6Entry_src_router_id_set" "', argument " "2"" of type '" "uint32_t""'");
20299 arg2 =
static_cast< uint32_t
>(val2);
20300 if (arg1) (arg1)->src_router_id = arg2;
20301 resultobj = SWIG_Py_Void();
20308 SWIGINTERN PyObject *_wrap_Rib6Entry_src_router_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20309 PyObject *resultobj = 0;
20313 PyObject * obj0 = 0 ;
20316 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib6Entry_src_router_id_get",&obj0)) SWIG_fail;
20317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20318 if (!SWIG_IsOK(res1)) {
20319 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_src_router_id_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20322 result = (uint32_t) ((arg1)->src_router_id);
20323 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
20330 SWIGINTERN PyObject *_wrap_Rib6Entry_update_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20331 PyObject *resultobj = 0;
20336 unsigned long long val2 ;
20338 PyObject * obj0 = 0 ;
20339 PyObject * obj1 = 0 ;
20341 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib6Entry_update_id_set",&obj0,&obj1)) SWIG_fail;
20342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20343 if (!SWIG_IsOK(res1)) {
20344 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_update_id_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20347 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
20348 if (!SWIG_IsOK(ecode2)) {
20349 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Rib6Entry_update_id_set" "', argument " "2"" of type '" "uint64_t""'");
20351 arg2 =
static_cast< uint64_t
>(val2);
20352 if (arg1) (arg1)->update_id = arg2;
20353 resultobj = SWIG_Py_Void();
20360 SWIGINTERN PyObject *_wrap_Rib6Entry_update_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20361 PyObject *resultobj = 0;
20365 PyObject * obj0 = 0 ;
20368 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib6Entry_update_id_get",&obj0)) SWIG_fail;
20369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20370 if (!SWIG_IsOK(res1)) {
20371 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_update_id_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20374 result = (uint64_t) ((arg1)->update_id);
20375 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
20382 SWIGINTERN PyObject *_wrap_Rib6Entry_weight_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20383 PyObject *resultobj = 0;
20390 PyObject * obj0 = 0 ;
20391 PyObject * obj1 = 0 ;
20393 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib6Entry_weight_set",&obj0,&obj1)) SWIG_fail;
20394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20395 if (!SWIG_IsOK(res1)) {
20396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_weight_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20399 ecode2 = SWIG_AsVal_int(obj1, &val2);
20400 if (!SWIG_IsOK(ecode2)) {
20401 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Rib6Entry_weight_set" "', argument " "2"" of type '" "int32_t""'");
20403 arg2 =
static_cast< int32_t
>(val2);
20404 if (arg1) (arg1)->weight = arg2;
20405 resultobj = SWIG_Py_Void();
20412 SWIGINTERN PyObject *_wrap_Rib6Entry_weight_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20413 PyObject *resultobj = 0;
20417 PyObject * obj0 = 0 ;
20420 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib6Entry_weight_get",&obj0)) SWIG_fail;
20421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20422 if (!SWIG_IsOK(res1)) {
20423 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_weight_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20426 result = (int32_t) ((arg1)->weight);
20427 resultobj = SWIG_From_int(static_cast< int >(result));
20434 SWIGINTERN PyObject *_wrap_Rib6Entry_attribs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20435 PyObject *resultobj = 0;
20437 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg2 = (std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *) 0 ;
20442 PyObject * obj0 = 0 ;
20443 PyObject * obj1 = 0 ;
20445 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib6Entry_attribs_set",&obj0,&obj1)) SWIG_fail;
20446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_attribs_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0 );
20452 if (!SWIG_IsOK(res2)) {
20453 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Rib6Entry_attribs_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *""'");
20455 arg2 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp2);
20456 if (arg1) (arg1)->attribs = *arg2;
20457 resultobj = SWIG_Py_Void();
20464 SWIGINTERN PyObject *_wrap_Rib6Entry_attribs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20465 PyObject *resultobj = 0;
20469 PyObject * obj0 = 0 ;
20470 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *result = 0 ;
20472 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib6Entry_attribs_get",&obj0)) SWIG_fail;
20473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry_attribs_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20478 result = (std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *)& ((arg1)->attribs);
20479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0 );
20486 SWIGINTERN PyObject *_wrap_Rib6Entry___gt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20487 PyObject *resultobj = 0;
20494 PyObject * obj0 = 0 ;
20495 PyObject * obj1 = 0 ;
20498 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib6Entry___gt__",&obj0,&obj1)) SWIG_fail;
20499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib6Entry___gt__" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > const *""'");
20504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0);
20505 if (!SWIG_IsOK(res2)) {
20506 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Rib6Entry___gt__" "', argument " "2"" of type '" "libbgp::BgpRib6Entry const &""'");
20509 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Rib6Entry___gt__" "', argument " "2"" of type '" "libbgp::BgpRib6Entry const &""'");
20513 resultobj = SWIG_From_bool(static_cast< bool >(result));
20520 SWIGINTERN PyObject *_wrap_new_Rib6Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20521 PyObject *resultobj = 0;
20524 if (!PyArg_ParseTuple(args,(
char *)
":new_Rib6Entry")) SWIG_fail;
20526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, SWIG_POINTER_NEW | 0 );
20533 SWIGINTERN PyObject *_wrap_delete_Rib6Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20534 PyObject *resultobj = 0;
20538 PyObject * obj0 = 0 ;
20540 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Rib6Entry",&obj0)) SWIG_fail;
20541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, SWIG_POINTER_DISOWN | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Rib6Entry" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *""'");
20547 resultobj = SWIG_Py_Void();
20554 SWIGINTERN PyObject *Rib6Entry_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20556 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
20557 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, SWIG_NewClientData(obj));
20558 return SWIG_Py_Void();
20561 SWIGINTERN PyObject *_wrap_Rib4Entry_src_router_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20562 PyObject *resultobj = 0;
20567 unsigned int val2 ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20572 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib4Entry_src_router_id_set",&obj0,&obj1)) SWIG_fail;
20573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20574 if (!SWIG_IsOK(res1)) {
20575 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_src_router_id_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20578 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
20579 if (!SWIG_IsOK(ecode2)) {
20580 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Rib4Entry_src_router_id_set" "', argument " "2"" of type '" "uint32_t""'");
20582 arg2 =
static_cast< uint32_t
>(val2);
20583 if (arg1) (arg1)->src_router_id = arg2;
20584 resultobj = SWIG_Py_Void();
20591 SWIGINTERN PyObject *_wrap_Rib4Entry_src_router_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20592 PyObject *resultobj = 0;
20596 PyObject * obj0 = 0 ;
20599 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib4Entry_src_router_id_get",&obj0)) SWIG_fail;
20600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20601 if (!SWIG_IsOK(res1)) {
20602 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_src_router_id_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20605 result = (uint32_t) ((arg1)->src_router_id);
20606 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
20613 SWIGINTERN PyObject *_wrap_Rib4Entry_update_id_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20614 PyObject *resultobj = 0;
20619 unsigned long long val2 ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20624 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib4Entry_update_id_set",&obj0,&obj1)) SWIG_fail;
20625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20626 if (!SWIG_IsOK(res1)) {
20627 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_update_id_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20630 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
20631 if (!SWIG_IsOK(ecode2)) {
20632 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Rib4Entry_update_id_set" "', argument " "2"" of type '" "uint64_t""'");
20634 arg2 =
static_cast< uint64_t
>(val2);
20635 if (arg1) (arg1)->update_id = arg2;
20636 resultobj = SWIG_Py_Void();
20643 SWIGINTERN PyObject *_wrap_Rib4Entry_update_id_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20644 PyObject *resultobj = 0;
20648 PyObject * obj0 = 0 ;
20651 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib4Entry_update_id_get",&obj0)) SWIG_fail;
20652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20653 if (!SWIG_IsOK(res1)) {
20654 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_update_id_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20657 result = (uint64_t) ((arg1)->update_id);
20658 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
20665 SWIGINTERN PyObject *_wrap_Rib4Entry_weight_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20666 PyObject *resultobj = 0;
20673 PyObject * obj0 = 0 ;
20674 PyObject * obj1 = 0 ;
20676 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib4Entry_weight_set",&obj0,&obj1)) SWIG_fail;
20677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20678 if (!SWIG_IsOK(res1)) {
20679 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_weight_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20682 ecode2 = SWIG_AsVal_int(obj1, &val2);
20683 if (!SWIG_IsOK(ecode2)) {
20684 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "Rib4Entry_weight_set" "', argument " "2"" of type '" "int32_t""'");
20686 arg2 =
static_cast< int32_t
>(val2);
20687 if (arg1) (arg1)->weight = arg2;
20688 resultobj = SWIG_Py_Void();
20695 SWIGINTERN PyObject *_wrap_Rib4Entry_weight_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20696 PyObject *resultobj = 0;
20700 PyObject * obj0 = 0 ;
20703 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib4Entry_weight_get",&obj0)) SWIG_fail;
20704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20705 if (!SWIG_IsOK(res1)) {
20706 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_weight_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20709 result = (int32_t) ((arg1)->weight);
20710 resultobj = SWIG_From_int(static_cast< int >(result));
20717 SWIGINTERN PyObject *_wrap_Rib4Entry_attribs_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20718 PyObject *resultobj = 0;
20720 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg2 = (std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *) 0 ;
20725 PyObject * obj0 = 0 ;
20726 PyObject * obj1 = 0 ;
20728 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib4Entry_attribs_set",&obj0,&obj1)) SWIG_fail;
20729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20730 if (!SWIG_IsOK(res1)) {
20731 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_attribs_set" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0 );
20735 if (!SWIG_IsOK(res2)) {
20736 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Rib4Entry_attribs_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *""'");
20738 arg2 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp2);
20739 if (arg1) (arg1)->attribs = *arg2;
20740 resultobj = SWIG_Py_Void();
20747 SWIGINTERN PyObject *_wrap_Rib4Entry_attribs_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20748 PyObject *resultobj = 0;
20752 PyObject * obj0 = 0 ;
20753 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *result = 0 ;
20755 if (!PyArg_ParseTuple(args,(
char *)
"O:Rib4Entry_attribs_get",&obj0)) SWIG_fail;
20756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20757 if (!SWIG_IsOK(res1)) {
20758 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry_attribs_get" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20761 result = (std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *)& ((arg1)->attribs);
20762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0 );
20769 SWIGINTERN PyObject *_wrap_Rib4Entry___gt__(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20770 PyObject *resultobj = 0;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20781 if (!PyArg_ParseTuple(args,(
char *)
"OO:Rib4Entry___gt__",&obj0,&obj1)) SWIG_fail;
20782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0 | 0 );
20783 if (!SWIG_IsOK(res1)) {
20784 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Rib4Entry___gt__" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > const *""'");
20787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0);
20788 if (!SWIG_IsOK(res2)) {
20789 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "Rib4Entry___gt__" "', argument " "2"" of type '" "libbgp::BgpRib4Entry const &""'");
20792 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "Rib4Entry___gt__" "', argument " "2"" of type '" "libbgp::BgpRib4Entry const &""'");
20796 resultobj = SWIG_From_bool(static_cast< bool >(result));
20803 SWIGINTERN PyObject *_wrap_new_Rib4Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20804 PyObject *resultobj = 0;
20807 if (!PyArg_ParseTuple(args,(
char *)
":new_Rib4Entry")) SWIG_fail;
20809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, SWIG_POINTER_NEW | 0 );
20816 SWIGINTERN PyObject *_wrap_delete_Rib4Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20817 PyObject *resultobj = 0;
20821 PyObject * obj0 = 0 ;
20823 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Rib4Entry",&obj0)) SWIG_fail;
20824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, SWIG_POINTER_DISOWN | 0 );
20825 if (!SWIG_IsOK(res1)) {
20826 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Rib4Entry" "', argument " "1"" of type '" "libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *""'");
20830 resultobj = SWIG_Py_Void();
20837 SWIGINTERN PyObject *Rib4Entry_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20839 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
20840 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, SWIG_NewClientData(obj));
20841 return SWIG_Py_Void();
20844 SWIGINTERN PyObject *_wrap_new_BgpRib4Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20845 PyObject *resultobj = 0;
20848 SwigValueWrapper< std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > > arg3 ;
20851 unsigned int val2 ;
20855 PyObject * obj0 = 0 ;
20856 PyObject * obj1 = 0 ;
20857 PyObject * obj2 = 0 ;
20860 if (!PyArg_ParseTuple(args,(
char *)
"OOO:new_BgpRib4Entry",&obj0,&obj1,&obj2)) SWIG_fail;
20862 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
20863 if (!SWIG_IsOK(res1)) {
20864 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpRib4Entry" "', argument " "1"" of type '" "libbgp::Prefix4""'");
20867 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpRib4Entry" "', argument " "1"" of type '" "libbgp::Prefix4""'");
20871 if (SWIG_IsNewObj(res1))
delete temp;
20874 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
20875 if (!SWIG_IsOK(ecode2)) {
20876 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpRib4Entry" "', argument " "2"" of type '" "uint32_t""'");
20878 arg2 =
static_cast< uint32_t
>(val2);
20880 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
20881 if (!SWIG_IsOK(res3)) {
20882 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_BgpRib4Entry" "', argument " "3"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const""'");
20885 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpRib4Entry" "', argument " "3"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const""'");
20887 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > * temp =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp3);
20889 if (SWIG_IsNewObj(res3))
delete temp;
20893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, SWIG_POINTER_NEW | 0 );
20900 SWIGINTERN PyObject *_wrap_BgpRib4Entry_route_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20901 PyObject *resultobj = 0;
20908 PyObject * obj0 = 0 ;
20909 PyObject * obj1 = 0 ;
20911 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib4Entry_route_set",&obj0,&obj1)) SWIG_fail;
20912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
20913 if (!SWIG_IsOK(res1)) {
20914 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4Entry_route_set" "', argument " "1"" of type '" "libbgp::BgpRib4Entry *""'");
20917 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
20918 if (!SWIG_IsOK(res2)) {
20919 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4Entry_route_set" "', argument " "2"" of type '" "libbgp::Prefix4 *""'");
20922 if (arg1) (arg1)->route = *arg2;
20923 resultobj = SWIG_Py_Void();
20930 SWIGINTERN PyObject *_wrap_BgpRib4Entry_route_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20931 PyObject *resultobj = 0;
20935 PyObject * obj0 = 0 ;
20938 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib4Entry_route_get",&obj0)) SWIG_fail;
20939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
20940 if (!SWIG_IsOK(res1)) {
20941 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4Entry_route_get" "', argument " "1"" of type '" "libbgp::BgpRib4Entry *""'");
20945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix4, 0 | 0 );
20952 SWIGINTERN PyObject *_wrap_BgpRib4Entry_getNexthop(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20953 PyObject *resultobj = 0;
20957 PyObject * obj0 = 0 ;
20960 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib4Entry_getNexthop",&obj0)) SWIG_fail;
20961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
20962 if (!SWIG_IsOK(res1)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4Entry_getNexthop" "', argument " "1"" of type '" "libbgp::BgpRib4Entry const *""'");
20967 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
20974 SWIGINTERN PyObject *_wrap_delete_BgpRib4Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20975 PyObject *resultobj = 0;
20979 PyObject * obj0 = 0 ;
20981 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpRib4Entry",&obj0)) SWIG_fail;
20982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4Entry, SWIG_POINTER_DISOWN | 0 );
20983 if (!SWIG_IsOK(res1)) {
20984 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpRib4Entry" "', argument " "1"" of type '" "libbgp::BgpRib4Entry *""'");
20988 resultobj = SWIG_Py_Void();
20995 SWIGINTERN PyObject *BgpRib4Entry_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
20997 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
20998 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpRib4Entry, SWIG_NewClientData(obj));
20999 return SWIG_Py_Void();
21002 SWIGINTERN PyObject *_wrap_new_BgpRib4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21003 PyObject *resultobj = 0;
21007 PyObject * obj0 = 0 ;
21010 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpRib4",&obj0)) SWIG_fail;
21011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21012 if (!SWIG_IsOK(res1)) {
21013 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpRib4" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
21017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4, SWIG_POINTER_NEW | 0 );
21024 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21025 PyObject *resultobj = 0;
21037 unsigned int val4 ;
21041 PyObject * obj0 = 0 ;
21042 PyObject * obj1 = 0 ;
21043 PyObject * obj2 = 0 ;
21044 PyObject * obj3 = 0 ;
21045 PyObject * obj4 = 0 ;
21048 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21050 if (!SWIG_IsOK(res1)) {
21051 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21055 if (!SWIG_IsOK(res2)) {
21056 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21059 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
21060 if (!SWIG_IsOK(res3)) {
21061 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21064 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21067 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21068 if (!SWIG_IsOK(ecode4)) {
21069 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21071 arg4 =
static_cast< uint32_t
>(val4);
21072 ecode5 = SWIG_AsVal_int(obj4, &val5);
21073 if (!SWIG_IsOK(ecode5)) {
21074 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "int32_t""'");
21076 arg5 =
static_cast< int32_t
>(val5);
21078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
21085 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21086 PyObject *resultobj = 0;
21097 unsigned int val4 ;
21099 PyObject * obj0 = 0 ;
21100 PyObject * obj1 = 0 ;
21101 PyObject * obj2 = 0 ;
21102 PyObject * obj3 = 0 ;
21105 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21107 if (!SWIG_IsOK(res1)) {
21108 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21112 if (!SWIG_IsOK(res2)) {
21113 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21116 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
21117 if (!SWIG_IsOK(res3)) {
21118 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21121 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21124 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21125 if (!SWIG_IsOK(ecode4)) {
21126 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21128 arg4 =
static_cast< uint32_t
>(val4);
21130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
21137 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21138 PyObject *resultobj = 0;
21151 unsigned int val4 ;
21157 PyObject * obj0 = 0 ;
21158 PyObject * obj1 = 0 ;
21159 PyObject * obj2 = 0 ;
21160 PyObject * obj3 = 0 ;
21161 PyObject * obj4 = 0 ;
21162 PyObject * obj5 = 0 ;
21165 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21167 if (!SWIG_IsOK(res1)) {
21168 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21171 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21172 if (!SWIG_IsOK(res2)) {
21173 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21176 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
21177 if (!SWIG_IsOK(res3)) {
21178 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21181 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21184 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21185 if (!SWIG_IsOK(ecode4)) {
21186 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21188 arg4 =
static_cast< uint32_t
>(val4);
21189 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
21190 if (!SWIG_IsOK(res5)) {
21191 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "libbgp::RouteEventBus *""'");
21194 ecode6 = SWIG_AsVal_int(obj5, &val6);
21195 if (!SWIG_IsOK(ecode6)) {
21196 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "BgpRib4_insert" "', argument " "6"" of type '" "int32_t""'");
21198 arg6 =
static_cast< int32_t
>(val6);
21200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
21207 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21208 PyObject *resultobj = 0;
21220 unsigned int val4 ;
21224 PyObject * obj0 = 0 ;
21225 PyObject * obj1 = 0 ;
21226 PyObject * obj2 = 0 ;
21227 PyObject * obj3 = 0 ;
21228 PyObject * obj4 = 0 ;
21231 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21233 if (!SWIG_IsOK(res1)) {
21234 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21238 if (!SWIG_IsOK(res2)) {
21239 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21242 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
21243 if (!SWIG_IsOK(res3)) {
21244 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21247 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21250 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21251 if (!SWIG_IsOK(ecode4)) {
21252 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21254 arg4 =
static_cast< uint32_t
>(val4);
21255 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
21256 if (!SWIG_IsOK(res5)) {
21257 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "libbgp::RouteEventBus *""'");
21261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
21268 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21269 PyObject *resultobj = 0;
21272 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
21281 unsigned int val4 ;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 PyObject * obj2 = 0 ;
21288 PyObject * obj3 = 0 ;
21289 PyObject * obj4 = 0 ;
21290 SwigValueWrapper< std::vector< libbgp::BgpRib4Entry > > result;
21292 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21294 if (!SWIG_IsOK(res1)) {
21295 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21299 if (!SWIG_IsOK(res2)) {
21300 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21303 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
21304 if (!SWIG_IsOK(res3)) {
21305 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21308 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21310 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
21311 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21312 if (!SWIG_IsOK(ecode4)) {
21313 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21315 arg4 =
static_cast< uint32_t
>(val4);
21316 ecode5 = SWIG_AsVal_int(obj4, &val5);
21317 if (!SWIG_IsOK(ecode5)) {
21318 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "int32_t""'");
21320 arg5 =
static_cast< int32_t
>(val5);
21321 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3,arg4,arg5);
21322 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib4Entry >(
static_cast< const std::vector< libbgp::BgpRib4Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib4Entry_t, SWIG_POINTER_OWN | 0 );
21329 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_5(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21330 PyObject *resultobj = 0;
21333 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
21341 unsigned int val4 ;
21343 PyObject * obj0 = 0 ;
21344 PyObject * obj1 = 0 ;
21345 PyObject * obj2 = 0 ;
21346 PyObject * obj3 = 0 ;
21347 SwigValueWrapper< std::vector< libbgp::BgpRib4Entry > > result;
21349 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21351 if (!SWIG_IsOK(res1)) {
21352 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21356 if (!SWIG_IsOK(res2)) {
21357 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21360 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
21361 if (!SWIG_IsOK(res3)) {
21362 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21365 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21367 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
21368 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21369 if (!SWIG_IsOK(ecode4)) {
21370 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21372 arg4 =
static_cast< uint32_t
>(val4);
21373 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3,arg4);
21374 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib4Entry >(
static_cast< const std::vector< libbgp::BgpRib4Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib4Entry_t, SWIG_POINTER_OWN | 0 );
21381 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21382 PyObject *resultobj = 0;
21385 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
21395 unsigned int val4 ;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403 PyObject * obj2 = 0 ;
21404 PyObject * obj3 = 0 ;
21405 PyObject * obj4 = 0 ;
21406 PyObject * obj5 = 0 ;
21407 SwigValueWrapper< std::vector< libbgp::BgpRib4Entry > > result;
21409 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21416 if (!SWIG_IsOK(res2)) {
21417 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21420 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
21421 if (!SWIG_IsOK(res3)) {
21422 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21425 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21427 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
21428 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21429 if (!SWIG_IsOK(ecode4)) {
21430 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21432 arg4 =
static_cast< uint32_t
>(val4);
21433 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
21434 if (!SWIG_IsOK(res5)) {
21435 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "libbgp::RouteEventBus *""'");
21438 ecode6 = SWIG_AsVal_int(obj5, &val6);
21439 if (!SWIG_IsOK(ecode6)) {
21440 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "BgpRib4_insert" "', argument " "6"" of type '" "int32_t""'");
21442 arg6 =
static_cast< int32_t
>(val6);
21443 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3,arg4,arg5,arg6);
21444 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib4Entry >(
static_cast< const std::vector< libbgp::BgpRib4Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib4Entry_t, SWIG_POINTER_OWN | 0 );
21451 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_7(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21452 PyObject *resultobj = 0;
21455 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
21464 unsigned int val4 ;
21468 PyObject * obj0 = 0 ;
21469 PyObject * obj1 = 0 ;
21470 PyObject * obj2 = 0 ;
21471 PyObject * obj3 = 0 ;
21472 PyObject * obj4 = 0 ;
21473 SwigValueWrapper< std::vector< libbgp::BgpRib4Entry > > result;
21475 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21477 if (!SWIG_IsOK(res1)) {
21478 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21481 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
21482 if (!SWIG_IsOK(res2)) {
21483 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
21486 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
21487 if (!SWIG_IsOK(res3)) {
21488 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21491 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21493 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
21494 ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
21495 if (!SWIG_IsOK(ecode4)) {
21496 SWIG_exception_fail(SWIG_ArgError(ecode4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "uint32_t""'");
21498 arg4 =
static_cast< uint32_t
>(val4);
21499 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
21500 if (!SWIG_IsOK(res5)) {
21501 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "libbgp::RouteEventBus *""'");
21504 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3,arg4,arg5);
21505 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib4Entry >(
static_cast< const std::vector< libbgp::BgpRib4Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib4Entry_t, SWIG_POINTER_OWN | 0 );
21512 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21513 PyObject *resultobj = 0;
21517 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg4 = 0 ;
21521 unsigned int val2 ;
21529 PyObject * obj0 = 0 ;
21530 PyObject * obj1 = 0 ;
21531 PyObject * obj2 = 0 ;
21532 PyObject * obj3 = 0 ;
21533 PyObject * obj4 = 0 ;
21536 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21538 if (!SWIG_IsOK(res1)) {
21539 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21542 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
21543 if (!SWIG_IsOK(ecode2)) {
21544 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "uint32_t""'");
21546 arg2 =
static_cast< uint32_t
>(val2);
21547 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
21548 if (!SWIG_IsOK(res3)) {
21549 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21552 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21555 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
21556 if (!SWIG_IsOK(res4)) {
21557 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
21560 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
21562 arg4 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp4);
21563 ecode5 = SWIG_AsVal_int(obj4, &val5);
21564 if (!SWIG_IsOK(ecode5)) {
21565 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "int32_t""'");
21567 arg5 =
static_cast< int32_t
>(val5);
21568 result = (bool)(arg1)->insert(arg2,(
libbgp::Prefix4 const &)*arg3,(std::vector< std::shared_ptr< libbgp::BgpPathAttrib > >
const &)*arg4,arg5);
21569 resultobj = SWIG_From_bool(static_cast< bool >(result));
21576 SWIGINTERN PyObject *_wrap_BgpRib4_insert__SWIG_9(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21577 PyObject *resultobj = 0;
21580 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
21581 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg4 = 0 ;
21585 unsigned int val2 ;
21593 PyObject * obj0 = 0 ;
21594 PyObject * obj1 = 0 ;
21595 PyObject * obj2 = 0 ;
21596 PyObject * obj3 = 0 ;
21597 PyObject * obj4 = 0 ;
21600 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib4_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_insert" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21606 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
21607 if (!SWIG_IsOK(ecode2)) {
21608 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_insert" "', argument " "2"" of type '" "uint32_t""'");
21610 arg2 =
static_cast< uint32_t
>(val2);
21611 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
21612 if (!SWIG_IsOK(res3)) {
21613 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21616 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
21618 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
21619 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
21620 if (!SWIG_IsOK(res4)) {
21621 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib4_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
21624 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
21626 arg4 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp4);
21627 ecode5 = SWIG_AsVal_int(obj4, &val5);
21628 if (!SWIG_IsOK(ecode5)) {
21629 SWIG_exception_fail(SWIG_ArgError(ecode5),
"in method '" "BgpRib4_insert" "', argument " "5"" of type '" "int32_t""'");
21631 arg5 =
static_cast< int32_t
>(val5);
21632 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3,(std::vector< std::shared_ptr< libbgp::BgpPathAttrib > >
const &)*arg4,arg5);
21633 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
21640 SWIGINTERN PyObject *_wrap_BgpRib4_insert(PyObject *
self, PyObject *args) {
21642 PyObject *argv[7] = {
21647 if (!PyTuple_Check(args)) SWIG_fail;
21648 argc = args ? PyObject_Length(args) : 0;
21649 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
21650 argv[ii] = PyTuple_GET_ITEM(args,ii);
21655 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21656 _v = SWIG_CheckState(res);
21659 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21660 _v = SWIG_CheckState(res);
21662 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
21663 _v = SWIG_CheckState(res);
21666 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21667 _v = SWIG_CheckState(res);
21670 return _wrap_BgpRib4_insert__SWIG_1(
self, args);
21679 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21680 _v = SWIG_CheckState(res);
21683 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21684 _v = SWIG_CheckState(res);
21686 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
21687 _v = SWIG_CheckState(res);
21690 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21691 _v = SWIG_CheckState(res);
21694 return _wrap_BgpRib4_insert__SWIG_5(
self, args);
21703 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21704 _v = SWIG_CheckState(res);
21707 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21708 _v = SWIG_CheckState(res);
21710 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
21711 _v = SWIG_CheckState(res);
21714 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21715 _v = SWIG_CheckState(res);
21719 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
21720 _v = SWIG_CheckState(res);
21722 return _wrap_BgpRib4_insert__SWIG_3(
self, args);
21732 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21733 _v = SWIG_CheckState(res);
21736 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21737 _v = SWIG_CheckState(res);
21739 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
21740 _v = SWIG_CheckState(res);
21743 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21744 _v = SWIG_CheckState(res);
21748 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
21749 _v = SWIG_CheckState(res);
21751 return _wrap_BgpRib4_insert__SWIG_7(
self, args);
21761 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21762 _v = SWIG_CheckState(res);
21765 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21766 _v = SWIG_CheckState(res);
21768 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
21769 _v = SWIG_CheckState(res);
21772 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21773 _v = SWIG_CheckState(res);
21777 int res = SWIG_AsVal_int(argv[4], NULL);
21778 _v = SWIG_CheckState(res);
21781 return _wrap_BgpRib4_insert__SWIG_0(
self, args);
21791 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21792 _v = SWIG_CheckState(res);
21795 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21796 _v = SWIG_CheckState(res);
21798 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
21799 _v = SWIG_CheckState(res);
21802 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21803 _v = SWIG_CheckState(res);
21807 int res = SWIG_AsVal_int(argv[4], NULL);
21808 _v = SWIG_CheckState(res);
21811 return _wrap_BgpRib4_insert__SWIG_4(
self, args);
21821 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21822 _v = SWIG_CheckState(res);
21825 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
21826 _v = SWIG_CheckState(res);
21829 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
21830 _v = SWIG_CheckState(res);
21832 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0);
21833 _v = SWIG_CheckState(res);
21836 int res = SWIG_AsVal_int(argv[4], NULL);
21837 _v = SWIG_CheckState(res);
21840 return _wrap_BgpRib4_insert__SWIG_8(
self, args);
21850 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21851 _v = SWIG_CheckState(res);
21854 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
21855 _v = SWIG_CheckState(res);
21858 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
21859 _v = SWIG_CheckState(res);
21861 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0);
21862 _v = SWIG_CheckState(res);
21865 int res = SWIG_AsVal_int(argv[4], NULL);
21866 _v = SWIG_CheckState(res);
21869 return _wrap_BgpRib4_insert__SWIG_9(
self, args);
21879 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21880 _v = SWIG_CheckState(res);
21883 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21884 _v = SWIG_CheckState(res);
21886 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
21887 _v = SWIG_CheckState(res);
21890 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21891 _v = SWIG_CheckState(res);
21895 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
21896 _v = SWIG_CheckState(res);
21899 int res = SWIG_AsVal_int(argv[5], NULL);
21900 _v = SWIG_CheckState(res);
21903 return _wrap_BgpRib4_insert__SWIG_6(
self, args);
21914 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
21915 _v = SWIG_CheckState(res);
21918 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
21919 _v = SWIG_CheckState(res);
21921 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
21922 _v = SWIG_CheckState(res);
21925 int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21926 _v = SWIG_CheckState(res);
21930 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
21931 _v = SWIG_CheckState(res);
21934 int res = SWIG_AsVal_int(argv[5], NULL);
21935 _v = SWIG_CheckState(res);
21938 return _wrap_BgpRib4_insert__SWIG_2(
self, args);
21948 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpRib4_insert'.\n" 21949 " Possible C/C++ prototypes are:\n" 21950 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,libbgp::Prefix4 const &,uint32_t,int32_t)\n" 21951 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,libbgp::Prefix4 const &,uint32_t)\n" 21952 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,libbgp::Prefix4 const &,uint32_t,libbgp::RouteEventBus *,int32_t)\n" 21953 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,libbgp::Prefix4 const &,uint32_t,libbgp::RouteEventBus *)\n" 21954 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix4 > const &,uint32_t,int32_t)\n" 21955 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix4 > const &,uint32_t)\n" 21956 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix4 > const &,uint32_t,libbgp::RouteEventBus *,int32_t)\n" 21957 " libbgp::BgpRib4::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix4 > const &,uint32_t,libbgp::RouteEventBus *)\n" 21958 " libbgp::BgpRib4::insert(uint32_t,libbgp::Prefix4 const &,std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &,int32_t)\n" 21959 " libbgp::BgpRib4::insert(uint32_t,std::vector< libbgp::Prefix4 > const &,std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &,int32_t)\n");
21964 SWIGINTERN PyObject *_wrap_BgpRib4_withdraw__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
21965 PyObject *resultobj = 0;
21971 unsigned int val2 ;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 PyObject * obj2 = 0 ;
21980 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpRib4_withdraw",&obj0,&obj1,&obj2)) SWIG_fail;
21981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
21982 if (!SWIG_IsOK(res1)) {
21983 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_withdraw" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
21986 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
21987 if (!SWIG_IsOK(ecode2)) {
21988 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_withdraw" "', argument " "2"" of type '" "uint32_t""'");
21990 arg2 =
static_cast< uint32_t
>(val2);
21991 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
21992 if (!SWIG_IsOK(res3)) {
21993 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21996 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
21999 result = (bool)(arg1)->withdraw(arg2,(
libbgp::Prefix4 const &)*arg3);
22000 resultobj = SWIG_From_bool(static_cast< bool >(result));
22007 SWIGINTERN PyObject *_wrap_BgpRib4_withdraw__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22008 PyObject *resultobj = 0;
22015 unsigned int val2 ;
22021 PyObject * obj0 = 0 ;
22022 PyObject * obj1 = 0 ;
22023 PyObject * obj2 = 0 ;
22024 PyObject * obj3 = 0 ;
22027 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpRib4_withdraw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22029 if (!SWIG_IsOK(res1)) {
22030 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_withdraw" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
22033 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22034 if (!SWIG_IsOK(ecode2)) {
22035 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_withdraw" "', argument " "2"" of type '" "uint32_t""'");
22037 arg2 =
static_cast< uint32_t
>(val2);
22038 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
22039 if (!SWIG_IsOK(res3)) {
22040 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
22043 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "libbgp::Prefix4 const &""'");
22046 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
22047 if (!SWIG_IsOK(res4)) {
22048 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib4_withdraw" "', argument " "4"" of type '" "libbgp::RouteEventBus *""'");
22051 result = (bool)(arg1)->withdraw(arg2,(
libbgp::Prefix4 const &)*arg3,arg4);
22052 resultobj = SWIG_From_bool(static_cast< bool >(result));
22059 SWIGINTERN PyObject *_wrap_BgpRib4_withdraw__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22060 PyObject *resultobj = 0;
22063 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
22066 unsigned int val2 ;
22070 PyObject * obj0 = 0 ;
22071 PyObject * obj1 = 0 ;
22072 PyObject * obj2 = 0 ;
22075 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpRib4_withdraw",&obj0,&obj1,&obj2)) SWIG_fail;
22076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22077 if (!SWIG_IsOK(res1)) {
22078 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_withdraw" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
22081 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22082 if (!SWIG_IsOK(ecode2)) {
22083 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_withdraw" "', argument " "2"" of type '" "uint32_t""'");
22085 arg2 =
static_cast< uint32_t
>(val2);
22086 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
22087 if (!SWIG_IsOK(res3)) {
22088 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
22091 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
22093 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
22094 result = (arg1)->withdraw(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3);
22095 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
22102 SWIGINTERN PyObject *_wrap_BgpRib4_withdraw__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22103 PyObject *resultobj = 0;
22106 std::vector< libbgp::Prefix4 > *arg3 = 0 ;
22110 unsigned int val2 ;
22116 PyObject * obj0 = 0 ;
22117 PyObject * obj1 = 0 ;
22118 PyObject * obj2 = 0 ;
22119 PyObject * obj3 = 0 ;
22122 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpRib4_withdraw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22124 if (!SWIG_IsOK(res1)) {
22125 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_withdraw" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
22128 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22129 if (!SWIG_IsOK(ecode2)) {
22130 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_withdraw" "', argument " "2"" of type '" "uint32_t""'");
22132 arg2 =
static_cast< uint32_t
>(val2);
22133 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
22134 if (!SWIG_IsOK(res3)) {
22135 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
22138 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib4_withdraw" "', argument " "3"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
22140 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp3);
22141 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
22142 if (!SWIG_IsOK(res4)) {
22143 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib4_withdraw" "', argument " "4"" of type '" "libbgp::RouteEventBus *""'");
22146 result = (arg1)->withdraw(arg2,(std::vector< libbgp::Prefix4 >
const &)*arg3,arg4);
22147 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
22154 SWIGINTERN PyObject *_wrap_BgpRib4_withdraw(PyObject *
self, PyObject *args) {
22156 PyObject *argv[5] = {
22161 if (!PyTuple_Check(args)) SWIG_fail;
22162 argc = args ? PyObject_Length(args) : 0;
22163 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
22164 argv[ii] = PyTuple_GET_ITEM(args,ii);
22169 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
22170 _v = SWIG_CheckState(res);
22173 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
22174 _v = SWIG_CheckState(res);
22177 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
22178 _v = SWIG_CheckState(res);
22180 return _wrap_BgpRib4_withdraw__SWIG_0(
self, args);
22188 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
22189 _v = SWIG_CheckState(res);
22192 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
22193 _v = SWIG_CheckState(res);
22196 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
22197 _v = SWIG_CheckState(res);
22199 return _wrap_BgpRib4_withdraw__SWIG_2(
self, args);
22207 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
22208 _v = SWIG_CheckState(res);
22211 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
22212 _v = SWIG_CheckState(res);
22215 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
22216 _v = SWIG_CheckState(res);
22219 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
22220 _v = SWIG_CheckState(res);
22222 return _wrap_BgpRib4_withdraw__SWIG_1(
self, args);
22231 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
22232 _v = SWIG_CheckState(res);
22235 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
22236 _v = SWIG_CheckState(res);
22239 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0);
22240 _v = SWIG_CheckState(res);
22243 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
22244 _v = SWIG_CheckState(res);
22246 return _wrap_BgpRib4_withdraw__SWIG_3(
self, args);
22254 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpRib4_withdraw'.\n" 22255 " Possible C/C++ prototypes are:\n" 22256 " libbgp::BgpRib4::withdraw(uint32_t,libbgp::Prefix4 const &)\n" 22257 " libbgp::BgpRib4::withdraw(uint32_t,libbgp::Prefix4 const &,libbgp::RouteEventBus *)\n" 22258 " libbgp::BgpRib4::withdraw(uint32_t,std::vector< libbgp::Prefix4 > const &)\n" 22259 " libbgp::BgpRib4::withdraw(uint32_t,std::vector< libbgp::Prefix4 > const &,libbgp::RouteEventBus *)\n");
22264 SWIGINTERN PyObject *_wrap_BgpRib4_discard(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22265 PyObject *resultobj = 0;
22270 unsigned int val2 ;
22272 PyObject * obj0 = 0 ;
22273 PyObject * obj1 = 0 ;
22274 SwigValueWrapper< std::vector< libbgp::Prefix4 > > result;
22276 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib4_discard",&obj0,&obj1)) SWIG_fail;
22277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22278 if (!SWIG_IsOK(res1)) {
22279 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_discard" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
22282 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22283 if (!SWIG_IsOK(ecode2)) {
22284 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_discard" "', argument " "2"" of type '" "uint32_t""'");
22286 arg2 =
static_cast< uint32_t
>(val2);
22287 result = (arg1)->discard(arg2);
22288 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::Prefix4 >(
static_cast< const std::vector< libbgp::Prefix4 >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, SWIG_POINTER_OWN | 0 );
22295 SWIGINTERN PyObject *_wrap_BgpRib4_lookup__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22296 PyObject *resultobj = 0;
22301 unsigned int val2 ;
22303 PyObject * obj0 = 0 ;
22304 PyObject * obj1 = 0 ;
22307 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib4_lookup",&obj0,&obj1)) SWIG_fail;
22308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22309 if (!SWIG_IsOK(res1)) {
22310 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_lookup" "', argument " "1"" of type '" "libbgp::BgpRib4 const *""'");
22313 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22314 if (!SWIG_IsOK(ecode2)) {
22315 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_lookup" "', argument " "2"" of type '" "uint32_t""'");
22317 arg2 =
static_cast< uint32_t
>(val2);
22319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
22326 SWIGINTERN PyObject *_wrap_BgpRib4_lookup__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22327 PyObject *resultobj = 0;
22333 unsigned int val2 ;
22335 unsigned int val3 ;
22337 PyObject * obj0 = 0 ;
22338 PyObject * obj1 = 0 ;
22339 PyObject * obj2 = 0 ;
22342 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpRib4_lookup",&obj0,&obj1,&obj2)) SWIG_fail;
22343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22344 if (!SWIG_IsOK(res1)) {
22345 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_lookup" "', argument " "1"" of type '" "libbgp::BgpRib4 const *""'");
22348 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22349 if (!SWIG_IsOK(ecode2)) {
22350 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib4_lookup" "', argument " "2"" of type '" "uint32_t""'");
22352 arg2 =
static_cast< uint32_t
>(val2);
22353 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
22354 if (!SWIG_IsOK(ecode3)) {
22355 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpRib4_lookup" "', argument " "3"" of type '" "uint32_t""'");
22357 arg3 =
static_cast< uint32_t
>(val3);
22359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib4Entry, 0 | 0 );
22366 SWIGINTERN PyObject *_wrap_BgpRib4_lookup(PyObject *
self, PyObject *args) {
22368 PyObject *argv[4] = {
22373 if (!PyTuple_Check(args)) SWIG_fail;
22374 argc = args ? PyObject_Length(args) : 0;
22375 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
22376 argv[ii] = PyTuple_GET_ITEM(args,ii);
22381 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
22382 _v = SWIG_CheckState(res);
22385 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
22386 _v = SWIG_CheckState(res);
22389 return _wrap_BgpRib4_lookup__SWIG_0(
self, args);
22396 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib4, 0);
22397 _v = SWIG_CheckState(res);
22400 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
22401 _v = SWIG_CheckState(res);
22405 int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
22406 _v = SWIG_CheckState(res);
22409 return _wrap_BgpRib4_lookup__SWIG_1(
self, args);
22416 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpRib4_lookup'.\n" 22417 " Possible C/C++ prototypes are:\n" 22418 " libbgp::BgpRib4::lookup(uint32_t) const\n" 22419 " libbgp::BgpRib4::lookup(uint32_t,uint32_t) const\n");
22424 SWIGINTERN PyObject *_wrap_BgpRib4_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22425 PyObject *resultobj = 0;
22429 PyObject * obj0 = 0 ;
22430 std::vector< libbgp::BgpRib4Entry > *result = 0 ;
22432 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib4_get",&obj0)) SWIG_fail;
22433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, 0 | 0 );
22434 if (!SWIG_IsOK(res1)) {
22435 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib4_get" "', argument " "1"" of type '" "libbgp::BgpRib4 const *""'");
22438 result = (std::vector< libbgp::BgpRib4Entry > *) &((
libbgp::BgpRib4 const *)arg1)->
get();
22439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__BgpRib4Entry_t, 0 | 0 );
22446 SWIGINTERN PyObject *_wrap_delete_BgpRib4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22447 PyObject *resultobj = 0;
22451 PyObject * obj0 = 0 ;
22453 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpRib4",&obj0)) SWIG_fail;
22454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib4, SWIG_POINTER_DISOWN | 0 );
22455 if (!SWIG_IsOK(res1)) {
22456 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpRib4" "', argument " "1"" of type '" "libbgp::BgpRib4 *""'");
22460 resultobj = SWIG_Py_Void();
22467 SWIGINTERN PyObject *BgpRib4_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22469 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
22470 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpRib4, SWIG_NewClientData(obj));
22471 return SWIG_Py_Void();
22474 SWIGINTERN PyObject *_wrap_new_BgpRib6Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22475 PyObject *resultobj = 0;
22480 SwigValueWrapper< std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > > arg5 ;
22483 unsigned int val2 ;
22491 PyObject * obj0 = 0 ;
22492 PyObject * obj1 = 0 ;
22493 PyObject * obj2 = 0 ;
22494 PyObject * obj3 = 0 ;
22495 PyObject * obj4 = 0 ;
22498 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:new_BgpRib6Entry",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22500 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
22501 if (!SWIG_IsOK(res1)) {
22502 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpRib6Entry" "', argument " "1"" of type '" "libbgp::Prefix6""'");
22505 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpRib6Entry" "', argument " "1"" of type '" "libbgp::Prefix6""'");
22509 if (SWIG_IsNewObj(res1))
delete temp;
22512 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
22513 if (!SWIG_IsOK(ecode2)) {
22514 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpRib6Entry" "', argument " "2"" of type '" "uint32_t""'");
22516 arg2 =
static_cast< uint32_t
>(val2);
22517 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
22518 if (!SWIG_IsOK(res3)) {
22519 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "new_BgpRib6Entry" "', argument " "3"" of type '" "uint8_t const [16]""'");
22521 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
22522 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22523 if (!SWIG_IsOK(res4)) {
22524 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "new_BgpRib6Entry" "', argument " "4"" of type '" "uint8_t const [16]""'");
22526 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22528 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
22529 if (!SWIG_IsOK(res5)) {
22530 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "new_BgpRib6Entry" "', argument " "5"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const""'");
22533 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "new_BgpRib6Entry" "', argument " "5"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const""'");
22535 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > * temp =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp5);
22537 if (SWIG_IsNewObj(res5))
delete temp;
22541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, SWIG_POINTER_NEW | 0 );
22548 SWIGINTERN PyObject *_wrap_BgpRib6Entry_route_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22549 PyObject *resultobj = 0;
22556 PyObject * obj0 = 0 ;
22557 PyObject * obj1 = 0 ;
22559 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib6Entry_route_set",&obj0,&obj1)) SWIG_fail;
22560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22561 if (!SWIG_IsOK(res1)) {
22562 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6Entry_route_set" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
22566 if (!SWIG_IsOK(res2)) {
22567 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6Entry_route_set" "', argument " "2"" of type '" "libbgp::Prefix6 *""'");
22570 if (arg1) (arg1)->route = *arg2;
22571 resultobj = SWIG_Py_Void();
22578 SWIGINTERN PyObject *_wrap_BgpRib6Entry_route_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22579 PyObject *resultobj = 0;
22583 PyObject * obj0 = 0 ;
22586 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib6Entry_route_get",&obj0)) SWIG_fail;
22587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22588 if (!SWIG_IsOK(res1)) {
22589 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6Entry_route_get" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__Prefix6, 0 | 0 );
22600 SWIGINTERN PyObject *_wrap_BgpRib6Entry_nexthop_global_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22601 PyObject *resultobj = 0;
22608 PyObject * obj0 = 0 ;
22609 PyObject * obj1 = 0 ;
22611 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib6Entry_nexthop_global_set",&obj0,&obj1)) SWIG_fail;
22612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22613 if (!SWIG_IsOK(res1)) {
22614 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6Entry_nexthop_global_set" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
22618 if (!SWIG_IsOK(res2)) {
22619 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6Entry_nexthop_global_set" "', argument " "2"" of type '" "uint8_t [16]""'");
22621 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
22625 for (; ii < (size_t)16; ++ii) *(uint8_t *)&arg1->
nexthop_global[ii] = *((uint8_t *)arg2 + ii);
22627 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""nexthop_global""' of type '""uint8_t [16]""'");
22630 resultobj = SWIG_Py_Void();
22637 SWIGINTERN PyObject *_wrap_BgpRib6Entry_nexthop_global_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22638 PyObject *resultobj = 0;
22642 PyObject * obj0 = 0 ;
22643 uint8_t *result = 0 ;
22645 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib6Entry_nexthop_global_get",&obj0)) SWIG_fail;
22646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22647 if (!SWIG_IsOK(res1)) {
22648 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6Entry_nexthop_global_get" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22651 result = (uint8_t *)(uint8_t *) ((arg1)->nexthop_global);
22652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
22659 SWIGINTERN PyObject *_wrap_BgpRib6Entry_nexthop_linklocal_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22660 PyObject *resultobj = 0;
22667 PyObject * obj0 = 0 ;
22668 PyObject * obj1 = 0 ;
22670 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib6Entry_nexthop_linklocal_set",&obj0,&obj1)) SWIG_fail;
22671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22672 if (!SWIG_IsOK(res1)) {
22673 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6Entry_nexthop_linklocal_set" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
22677 if (!SWIG_IsOK(res2)) {
22678 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6Entry_nexthop_linklocal_set" "', argument " "2"" of type '" "uint8_t [16]""'");
22680 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
22684 for (; ii < (size_t)16; ++ii) *(uint8_t *)&arg1->
nexthop_linklocal[ii] = *((uint8_t *)arg2 + ii);
22686 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in variable '""nexthop_linklocal""' of type '""uint8_t [16]""'");
22689 resultobj = SWIG_Py_Void();
22696 SWIGINTERN PyObject *_wrap_BgpRib6Entry_nexthop_linklocal_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22697 PyObject *resultobj = 0;
22701 PyObject * obj0 = 0 ;
22702 uint8_t *result = 0 ;
22704 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib6Entry_nexthop_linklocal_get",&obj0)) SWIG_fail;
22705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22706 if (!SWIG_IsOK(res1)) {
22707 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6Entry_nexthop_linklocal_get" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22710 result = (uint8_t *)(uint8_t *) ((arg1)->nexthop_linklocal);
22711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
22718 SWIGINTERN PyObject *_wrap_delete_BgpRib6Entry(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22719 PyObject *resultobj = 0;
22723 PyObject * obj0 = 0 ;
22725 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpRib6Entry",&obj0)) SWIG_fail;
22726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6Entry, SWIG_POINTER_DISOWN | 0 );
22727 if (!SWIG_IsOK(res1)) {
22728 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpRib6Entry" "', argument " "1"" of type '" "libbgp::BgpRib6Entry *""'");
22732 resultobj = SWIG_Py_Void();
22739 SWIGINTERN PyObject *BgpRib6Entry_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22741 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
22742 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpRib6Entry, SWIG_NewClientData(obj));
22743 return SWIG_Py_Void();
22746 SWIGINTERN PyObject *_wrap_new_BgpRib6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22747 PyObject *resultobj = 0;
22751 PyObject * obj0 = 0 ;
22754 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpRib6",&obj0)) SWIG_fail;
22755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpRib6" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
22761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6, SWIG_POINTER_NEW | 0 );
22768 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22769 PyObject *resultobj = 0;
22788 PyObject * obj0 = 0 ;
22789 PyObject * obj1 = 0 ;
22790 PyObject * obj2 = 0 ;
22791 PyObject * obj3 = 0 ;
22792 PyObject * obj4 = 0 ;
22793 PyObject * obj5 = 0 ;
22796 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
22798 if (!SWIG_IsOK(res1)) {
22799 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
22802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
22803 if (!SWIG_IsOK(res2)) {
22804 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
22807 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
22808 if (!SWIG_IsOK(res3)) {
22809 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
22812 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
22815 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22816 if (!SWIG_IsOK(res4)) {
22817 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
22819 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22820 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
22821 if (!SWIG_IsOK(res5)) {
22822 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
22824 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
22825 ecode6 = SWIG_AsVal_int(obj5, &val6);
22826 if (!SWIG_IsOK(ecode6)) {
22827 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "int32_t""'");
22829 arg6 =
static_cast< int32_t
>(val6);
22831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22838 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22839 PyObject *resultobj = 0;
22855 PyObject * obj0 = 0 ;
22856 PyObject * obj1 = 0 ;
22857 PyObject * obj2 = 0 ;
22858 PyObject * obj3 = 0 ;
22859 PyObject * obj4 = 0 ;
22862 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
22864 if (!SWIG_IsOK(res1)) {
22865 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
22868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
22869 if (!SWIG_IsOK(res2)) {
22870 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
22873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
22874 if (!SWIG_IsOK(res3)) {
22875 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
22878 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
22881 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22882 if (!SWIG_IsOK(res4)) {
22883 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
22885 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22886 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
22887 if (!SWIG_IsOK(res5)) {
22888 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
22890 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
22892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22899 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_2(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22900 PyObject *resultobj = 0;
22922 PyObject * obj0 = 0 ;
22923 PyObject * obj1 = 0 ;
22924 PyObject * obj2 = 0 ;
22925 PyObject * obj3 = 0 ;
22926 PyObject * obj4 = 0 ;
22927 PyObject * obj5 = 0 ;
22928 PyObject * obj6 = 0 ;
22931 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
22933 if (!SWIG_IsOK(res1)) {
22934 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
22937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
22938 if (!SWIG_IsOK(res2)) {
22939 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
22942 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
22943 if (!SWIG_IsOK(res3)) {
22944 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
22947 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
22950 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
22951 if (!SWIG_IsOK(res4)) {
22952 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
22954 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
22955 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
22956 if (!SWIG_IsOK(res5)) {
22957 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
22959 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
22960 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
22961 if (!SWIG_IsOK(res6)) {
22962 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "libbgp::RouteEventBus *""'");
22965 ecode7 = SWIG_AsVal_int(obj6, &val7);
22966 if (!SWIG_IsOK(ecode7)) {
22967 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "BgpRib6_insert" "', argument " "7"" of type '" "int32_t""'");
22969 arg7 =
static_cast< int32_t
>(val7);
22971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
22978 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_3(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
22979 PyObject *resultobj = 0;
22998 PyObject * obj0 = 0 ;
22999 PyObject * obj1 = 0 ;
23000 PyObject * obj2 = 0 ;
23001 PyObject * obj3 = 0 ;
23002 PyObject * obj4 = 0 ;
23003 PyObject * obj5 = 0 ;
23006 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23008 if (!SWIG_IsOK(res1)) {
23009 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
23013 if (!SWIG_IsOK(res2)) {
23014 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
23017 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
23018 if (!SWIG_IsOK(res3)) {
23019 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
23022 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
23025 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23026 if (!SWIG_IsOK(res4)) {
23027 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23029 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23030 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23031 if (!SWIG_IsOK(res5)) {
23032 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23034 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23035 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
23036 if (!SWIG_IsOK(res6)) {
23037 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "libbgp::RouteEventBus *""'");
23041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
23048 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23049 PyObject *resultobj = 0;
23052 std::vector< libbgp::Prefix6 > *arg3 = 0 ;
23068 PyObject * obj0 = 0 ;
23069 PyObject * obj1 = 0 ;
23070 PyObject * obj2 = 0 ;
23071 PyObject * obj3 = 0 ;
23072 PyObject * obj4 = 0 ;
23073 PyObject * obj5 = 0 ;
23074 SwigValueWrapper< std::vector< libbgp::BgpRib6Entry > > result;
23076 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23078 if (!SWIG_IsOK(res1)) {
23079 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
23083 if (!SWIG_IsOK(res2)) {
23084 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
23087 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
23088 if (!SWIG_IsOK(res3)) {
23089 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23092 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23094 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp3);
23095 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23096 if (!SWIG_IsOK(res4)) {
23097 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23099 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23100 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23101 if (!SWIG_IsOK(res5)) {
23102 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23104 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23105 ecode6 = SWIG_AsVal_int(obj5, &val6);
23106 if (!SWIG_IsOK(ecode6)) {
23107 SWIG_exception_fail(SWIG_ArgError(ecode6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "int32_t""'");
23109 arg6 =
static_cast< int32_t
>(val6);
23110 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix6 >
const &)*arg3,(uint8_t
const (*))arg4,(uint8_t
const (*))arg5,arg6);
23111 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib6Entry >(
static_cast< const std::vector< libbgp::BgpRib6Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib6Entry_t, SWIG_POINTER_OWN | 0 );
23118 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_5(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23119 PyObject *resultobj = 0;
23122 std::vector< libbgp::Prefix6 > *arg3 = 0 ;
23135 PyObject * obj0 = 0 ;
23136 PyObject * obj1 = 0 ;
23137 PyObject * obj2 = 0 ;
23138 PyObject * obj3 = 0 ;
23139 PyObject * obj4 = 0 ;
23140 SwigValueWrapper< std::vector< libbgp::BgpRib6Entry > > result;
23142 if (!PyArg_ParseTuple(args,(
char *)
"OOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23144 if (!SWIG_IsOK(res1)) {
23145 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
23149 if (!SWIG_IsOK(res2)) {
23150 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
23153 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
23154 if (!SWIG_IsOK(res3)) {
23155 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23158 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23160 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp3);
23161 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23162 if (!SWIG_IsOK(res4)) {
23163 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23165 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23166 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23167 if (!SWIG_IsOK(res5)) {
23168 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23170 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23171 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix6 >
const &)*arg3,(uint8_t
const (*))arg4,(uint8_t
const (*))arg5);
23172 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib6Entry >(
static_cast< const std::vector< libbgp::BgpRib6Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib6Entry_t, SWIG_POINTER_OWN | 0 );
23179 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23180 PyObject *resultobj = 0;
23183 std::vector< libbgp::Prefix6 > *arg3 = 0 ;
23202 PyObject * obj0 = 0 ;
23203 PyObject * obj1 = 0 ;
23204 PyObject * obj2 = 0 ;
23205 PyObject * obj3 = 0 ;
23206 PyObject * obj4 = 0 ;
23207 PyObject * obj5 = 0 ;
23208 PyObject * obj6 = 0 ;
23209 SwigValueWrapper< std::vector< libbgp::BgpRib6Entry > > result;
23211 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
23212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23213 if (!SWIG_IsOK(res1)) {
23214 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
23218 if (!SWIG_IsOK(res2)) {
23219 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
23222 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
23223 if (!SWIG_IsOK(res3)) {
23224 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23227 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23229 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp3);
23230 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23231 if (!SWIG_IsOK(res4)) {
23232 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23234 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23235 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23236 if (!SWIG_IsOK(res5)) {
23237 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23239 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23240 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
23241 if (!SWIG_IsOK(res6)) {
23242 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "libbgp::RouteEventBus *""'");
23245 ecode7 = SWIG_AsVal_int(obj6, &val7);
23246 if (!SWIG_IsOK(ecode7)) {
23247 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "BgpRib6_insert" "', argument " "7"" of type '" "int32_t""'");
23249 arg7 =
static_cast< int32_t
>(val7);
23250 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix6 >
const &)*arg3,(uint8_t
const (*))arg4,(uint8_t
const (*))arg5,arg6,arg7);
23251 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib6Entry >(
static_cast< const std::vector< libbgp::BgpRib6Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib6Entry_t, SWIG_POINTER_OWN | 0 );
23258 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_7(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23259 PyObject *resultobj = 0;
23262 std::vector< libbgp::Prefix6 > *arg3 = 0 ;
23278 PyObject * obj0 = 0 ;
23279 PyObject * obj1 = 0 ;
23280 PyObject * obj2 = 0 ;
23281 PyObject * obj3 = 0 ;
23282 PyObject * obj4 = 0 ;
23283 PyObject * obj5 = 0 ;
23284 SwigValueWrapper< std::vector< libbgp::BgpRib6Entry > > result;
23286 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23288 if (!SWIG_IsOK(res1)) {
23289 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23292 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
23293 if (!SWIG_IsOK(res2)) {
23294 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
23297 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
23298 if (!SWIG_IsOK(res3)) {
23299 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23302 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23304 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp3);
23305 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23306 if (!SWIG_IsOK(res4)) {
23307 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23309 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23310 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23311 if (!SWIG_IsOK(res5)) {
23312 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23314 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23315 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_libbgp__RouteEventBus, 0 | 0 );
23316 if (!SWIG_IsOK(res6)) {
23317 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "libbgp::RouteEventBus *""'");
23320 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix6 >
const &)*arg3,(uint8_t
const (*))arg4,(uint8_t
const (*))arg5,arg6);
23321 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::BgpRib6Entry >(
static_cast< const std::vector< libbgp::BgpRib6Entry >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__BgpRib6Entry_t, SWIG_POINTER_OWN | 0 );
23328 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_8(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23329 PyObject *resultobj = 0;
23335 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg6 = 0 ;
23339 unsigned int val2 ;
23351 PyObject * obj0 = 0 ;
23352 PyObject * obj1 = 0 ;
23353 PyObject * obj2 = 0 ;
23354 PyObject * obj3 = 0 ;
23355 PyObject * obj4 = 0 ;
23356 PyObject * obj5 = 0 ;
23357 PyObject * obj6 = 0 ;
23360 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
23361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23362 if (!SWIG_IsOK(res1)) {
23363 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23366 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
23367 if (!SWIG_IsOK(ecode2)) {
23368 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "uint32_t""'");
23370 arg2 =
static_cast< uint32_t
>(val2);
23371 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
23372 if (!SWIG_IsOK(res3)) {
23373 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
23376 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
23379 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23380 if (!SWIG_IsOK(res4)) {
23381 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23383 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23384 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23385 if (!SWIG_IsOK(res5)) {
23386 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23388 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23389 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
23390 if (!SWIG_IsOK(res6)) {
23391 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
23394 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "6"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
23396 arg6 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp6);
23397 ecode7 = SWIG_AsVal_int(obj6, &val7);
23398 if (!SWIG_IsOK(ecode7)) {
23399 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "BgpRib6_insert" "', argument " "7"" of type '" "int32_t""'");
23401 arg7 =
static_cast< int32_t
>(val7);
23402 result = (bool)(arg1)->insert(arg2,(
libbgp::Prefix6 const &)*arg3,(uint8_t
const (*))arg4,(uint8_t
const (*))arg5,(std::vector< std::shared_ptr< libbgp::BgpPathAttrib > >
const &)*arg6,arg7);
23403 resultobj = SWIG_From_bool(static_cast< bool >(result));
23410 SWIGINTERN PyObject *_wrap_BgpRib6_insert__SWIG_9(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23411 PyObject *resultobj = 0;
23414 std::vector< libbgp::Prefix6 > *arg3 = 0 ;
23417 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg6 = 0 ;
23421 unsigned int val2 ;
23433 PyObject * obj0 = 0 ;
23434 PyObject * obj1 = 0 ;
23435 PyObject * obj2 = 0 ;
23436 PyObject * obj3 = 0 ;
23437 PyObject * obj4 = 0 ;
23438 PyObject * obj5 = 0 ;
23439 PyObject * obj6 = 0 ;
23442 if (!PyArg_ParseTuple(args,(
char *)
"OOOOOOO:BgpRib6_insert",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
23443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23444 if (!SWIG_IsOK(res1)) {
23445 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_insert" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23448 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
23449 if (!SWIG_IsOK(ecode2)) {
23450 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib6_insert" "', argument " "2"" of type '" "uint32_t""'");
23452 arg2 =
static_cast< uint32_t
>(val2);
23453 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
23454 if (!SWIG_IsOK(res3)) {
23455 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23458 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23460 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp3);
23461 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
23462 if (!SWIG_IsOK(res4)) {
23463 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpRib6_insert" "', argument " "4"" of type '" "uint8_t const [16]""'");
23465 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
23466 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 );
23467 if (!SWIG_IsOK(res5)) {
23468 SWIG_exception_fail(SWIG_ArgError(res5),
"in method '" "BgpRib6_insert" "', argument " "5"" of type '" "uint8_t const [16]""'");
23470 arg5 =
reinterpret_cast< uint8_t *
>(argp5);
23471 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
23472 if (!SWIG_IsOK(res6)) {
23473 SWIG_exception_fail(SWIG_ArgError(res6),
"in method '" "BgpRib6_insert" "', argument " "6"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
23476 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_insert" "', argument " "6"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
23478 arg6 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp6);
23479 ecode7 = SWIG_AsVal_int(obj6, &val7);
23480 if (!SWIG_IsOK(ecode7)) {
23481 SWIG_exception_fail(SWIG_ArgError(ecode7),
"in method '" "BgpRib6_insert" "', argument " "7"" of type '" "int32_t""'");
23483 arg7 =
static_cast< int32_t
>(val7);
23484 result = (arg1)->insert(arg2,(std::vector< libbgp::Prefix6 >
const &)*arg3,(uint8_t
const (*))arg4,(uint8_t
const (*))arg5,(std::vector< std::shared_ptr< libbgp::BgpPathAttrib > >
const &)*arg6,arg7);
23485 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
23492 SWIGINTERN PyObject *_wrap_BgpRib6_insert(PyObject *
self, PyObject *args) {
23494 PyObject *argv[8] = {
23499 if (!PyTuple_Check(args)) SWIG_fail;
23500 argc = args ? PyObject_Length(args) : 0;
23501 for (ii = 0; (ii < 7) && (ii < argc); ii++) {
23502 argv[ii] = PyTuple_GET_ITEM(args,ii);
23507 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23508 _v = SWIG_CheckState(res);
23511 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23512 _v = SWIG_CheckState(res);
23514 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix6, 0);
23515 _v = SWIG_CheckState(res);
23518 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23519 _v = SWIG_CheckState(res);
23522 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23523 _v = SWIG_CheckState(res);
23525 return _wrap_BgpRib6_insert__SWIG_1(
self, args);
23535 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23536 _v = SWIG_CheckState(res);
23539 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23540 _v = SWIG_CheckState(res);
23542 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0);
23543 _v = SWIG_CheckState(res);
23546 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23547 _v = SWIG_CheckState(res);
23550 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23551 _v = SWIG_CheckState(res);
23553 return _wrap_BgpRib6_insert__SWIG_5(
self, args);
23563 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23564 _v = SWIG_CheckState(res);
23567 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23568 _v = SWIG_CheckState(res);
23570 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix6, 0);
23571 _v = SWIG_CheckState(res);
23574 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23575 _v = SWIG_CheckState(res);
23578 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23579 _v = SWIG_CheckState(res);
23582 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
23583 _v = SWIG_CheckState(res);
23585 return _wrap_BgpRib6_insert__SWIG_3(
self, args);
23596 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23597 _v = SWIG_CheckState(res);
23600 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23601 _v = SWIG_CheckState(res);
23603 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0);
23604 _v = SWIG_CheckState(res);
23607 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23608 _v = SWIG_CheckState(res);
23611 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23612 _v = SWIG_CheckState(res);
23615 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
23616 _v = SWIG_CheckState(res);
23618 return _wrap_BgpRib6_insert__SWIG_7(
self, args);
23629 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23630 _v = SWIG_CheckState(res);
23633 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23634 _v = SWIG_CheckState(res);
23636 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix6, 0);
23637 _v = SWIG_CheckState(res);
23640 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23641 _v = SWIG_CheckState(res);
23644 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23645 _v = SWIG_CheckState(res);
23648 int res = SWIG_AsVal_int(argv[5], NULL);
23649 _v = SWIG_CheckState(res);
23652 return _wrap_BgpRib6_insert__SWIG_0(
self, args);
23663 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23664 _v = SWIG_CheckState(res);
23667 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23668 _v = SWIG_CheckState(res);
23670 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0);
23671 _v = SWIG_CheckState(res);
23674 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23675 _v = SWIG_CheckState(res);
23678 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23679 _v = SWIG_CheckState(res);
23682 int res = SWIG_AsVal_int(argv[5], NULL);
23683 _v = SWIG_CheckState(res);
23686 return _wrap_BgpRib6_insert__SWIG_4(
self, args);
23697 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23698 _v = SWIG_CheckState(res);
23701 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23702 _v = SWIG_CheckState(res);
23704 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0);
23705 _v = SWIG_CheckState(res);
23708 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23709 _v = SWIG_CheckState(res);
23712 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23713 _v = SWIG_CheckState(res);
23716 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
23717 _v = SWIG_CheckState(res);
23720 int res = SWIG_AsVal_int(argv[6], NULL);
23721 _v = SWIG_CheckState(res);
23724 return _wrap_BgpRib6_insert__SWIG_6(
self, args);
23736 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23737 _v = SWIG_CheckState(res);
23740 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_libbgp__BgpLogHandler, 0);
23741 _v = SWIG_CheckState(res);
23743 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix6, 0);
23744 _v = SWIG_CheckState(res);
23747 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23748 _v = SWIG_CheckState(res);
23751 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23752 _v = SWIG_CheckState(res);
23755 int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_libbgp__RouteEventBus, 0);
23756 _v = SWIG_CheckState(res);
23759 int res = SWIG_AsVal_int(argv[6], NULL);
23760 _v = SWIG_CheckState(res);
23763 return _wrap_BgpRib6_insert__SWIG_2(
self, args);
23775 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23776 _v = SWIG_CheckState(res);
23779 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
23780 _v = SWIG_CheckState(res);
23783 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix6, 0);
23784 _v = SWIG_CheckState(res);
23787 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23788 _v = SWIG_CheckState(res);
23791 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23792 _v = SWIG_CheckState(res);
23794 int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0);
23795 _v = SWIG_CheckState(res);
23798 int res = SWIG_AsVal_int(argv[6], NULL);
23799 _v = SWIG_CheckState(res);
23802 return _wrap_BgpRib6_insert__SWIG_8(
self, args);
23814 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23815 _v = SWIG_CheckState(res);
23818 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
23819 _v = SWIG_CheckState(res);
23822 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0);
23823 _v = SWIG_CheckState(res);
23826 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0);
23827 _v = SWIG_CheckState(res);
23830 int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0);
23831 _v = SWIG_CheckState(res);
23833 int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0);
23834 _v = SWIG_CheckState(res);
23837 int res = SWIG_AsVal_int(argv[6], NULL);
23838 _v = SWIG_CheckState(res);
23841 return _wrap_BgpRib6_insert__SWIG_9(
self, args);
23852 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpRib6_insert'.\n" 23853 " Possible C/C++ prototypes are:\n" 23854 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,libbgp::Prefix6 const &,uint8_t const [16],uint8_t const [16],int32_t)\n" 23855 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,libbgp::Prefix6 const &,uint8_t const [16],uint8_t const [16])\n" 23856 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,libbgp::Prefix6 const &,uint8_t const [16],uint8_t const [16],libbgp::RouteEventBus *,int32_t)\n" 23857 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,libbgp::Prefix6 const &,uint8_t const [16],uint8_t const [16],libbgp::RouteEventBus *)\n" 23858 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix6 > const &,uint8_t const [16],uint8_t const [16],int32_t)\n" 23859 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix6 > const &,uint8_t const [16],uint8_t const [16])\n" 23860 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix6 > const &,uint8_t const [16],uint8_t const [16],libbgp::RouteEventBus *,int32_t)\n" 23861 " libbgp::BgpRib6::insert(libbgp::BgpLogHandler *,std::vector< libbgp::Prefix6 > const &,uint8_t const [16],uint8_t const [16],libbgp::RouteEventBus *)\n" 23862 " libbgp::BgpRib6::insert(uint32_t,libbgp::Prefix6 const &,uint8_t const [16],uint8_t const [16],std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &,int32_t)\n" 23863 " libbgp::BgpRib6::insert(uint32_t,std::vector< libbgp::Prefix6 > const &,uint8_t const [16],uint8_t const [16],std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &,int32_t)\n");
23868 SWIGINTERN PyObject *_wrap_BgpRib6_withdraw__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23869 PyObject *resultobj = 0;
23875 unsigned int val2 ;
23879 PyObject * obj0 = 0 ;
23880 PyObject * obj1 = 0 ;
23881 PyObject * obj2 = 0 ;
23884 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpRib6_withdraw",&obj0,&obj1,&obj2)) SWIG_fail;
23885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23886 if (!SWIG_IsOK(res1)) {
23887 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_withdraw" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23890 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
23891 if (!SWIG_IsOK(ecode2)) {
23892 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib6_withdraw" "', argument " "2"" of type '" "uint32_t""'");
23894 arg2 =
static_cast< uint32_t
>(val2);
23895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_libbgp__Prefix6, 0 | 0);
23896 if (!SWIG_IsOK(res3)) {
23897 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_withdraw" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
23900 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_withdraw" "', argument " "3"" of type '" "libbgp::Prefix6 const &""'");
23903 result = (bool)(arg1)->withdraw(arg2,(
libbgp::Prefix6 const &)*arg3);
23904 resultobj = SWIG_From_bool(static_cast< bool >(result));
23911 SWIGINTERN PyObject *_wrap_BgpRib6_withdraw__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
23912 PyObject *resultobj = 0;
23915 std::vector< libbgp::Prefix6 > *arg3 = 0 ;
23918 unsigned int val2 ;
23922 PyObject * obj0 = 0 ;
23923 PyObject * obj1 = 0 ;
23924 PyObject * obj2 = 0 ;
23927 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpRib6_withdraw",&obj0,&obj1,&obj2)) SWIG_fail;
23928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
23929 if (!SWIG_IsOK(res1)) {
23930 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_withdraw" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
23933 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
23934 if (!SWIG_IsOK(ecode2)) {
23935 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib6_withdraw" "', argument " "2"" of type '" "uint32_t""'");
23937 arg2 =
static_cast< uint32_t
>(val2);
23938 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
23939 if (!SWIG_IsOK(res3)) {
23940 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_withdraw" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23943 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpRib6_withdraw" "', argument " "3"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
23945 arg3 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp3);
23946 result = (arg1)->withdraw(arg2,(std::vector< libbgp::Prefix6 >
const &)*arg3);
23947 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
23954 SWIGINTERN PyObject *_wrap_BgpRib6_withdraw(PyObject *
self, PyObject *args) {
23956 PyObject *argv[4] = {
23961 if (!PyTuple_Check(args)) SWIG_fail;
23962 argc = args ? PyObject_Length(args) : 0;
23963 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
23964 argv[ii] = PyTuple_GET_ITEM(args,ii);
23969 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23970 _v = SWIG_CheckState(res);
23973 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
23974 _v = SWIG_CheckState(res);
23977 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_libbgp__Prefix6, 0);
23978 _v = SWIG_CheckState(res);
23980 return _wrap_BgpRib6_withdraw__SWIG_0(
self, args);
23988 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
23989 _v = SWIG_CheckState(res);
23992 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
23993 _v = SWIG_CheckState(res);
23996 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0);
23997 _v = SWIG_CheckState(res);
23999 return _wrap_BgpRib6_withdraw__SWIG_1(
self, args);
24006 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpRib6_withdraw'.\n" 24007 " Possible C/C++ prototypes are:\n" 24008 " libbgp::BgpRib6::withdraw(uint32_t,libbgp::Prefix6 const &)\n" 24009 " libbgp::BgpRib6::withdraw(uint32_t,std::vector< libbgp::Prefix6 > const &)\n");
24014 SWIGINTERN PyObject *_wrap_BgpRib6_discard(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24015 PyObject *resultobj = 0;
24020 unsigned int val2 ;
24022 PyObject * obj0 = 0 ;
24023 PyObject * obj1 = 0 ;
24024 SwigValueWrapper< std::vector< libbgp::Prefix6 > > result;
24026 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib6_discard",&obj0,&obj1)) SWIG_fail;
24027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_discard" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
24032 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
24033 if (!SWIG_IsOK(ecode2)) {
24034 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib6_discard" "', argument " "2"" of type '" "uint32_t""'");
24036 arg2 =
static_cast< uint32_t
>(val2);
24037 result = (arg1)->discard(arg2);
24038 resultobj = SWIG_NewPointerObj((
new std::vector< libbgp::Prefix6 >(
static_cast< const std::vector< libbgp::Prefix6 >&
>(result))), SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, SWIG_POINTER_OWN | 0 );
24045 SWIGINTERN PyObject *_wrap_BgpRib6_lookup__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24046 PyObject *resultobj = 0;
24053 PyObject * obj0 = 0 ;
24054 PyObject * obj1 = 0 ;
24057 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpRib6_lookup",&obj0,&obj1)) SWIG_fail;
24058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
24059 if (!SWIG_IsOK(res1)) {
24060 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_lookup" "', argument " "1"" of type '" "libbgp::BgpRib6 const *""'");
24063 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
24064 if (!SWIG_IsOK(res2)) {
24065 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpRib6_lookup" "', argument " "2"" of type '" "uint8_t const [16]""'");
24067 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
24069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
24076 SWIGINTERN PyObject *_wrap_BgpRib6_lookup__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24077 PyObject *resultobj = 0;
24083 unsigned int val2 ;
24087 PyObject * obj0 = 0 ;
24088 PyObject * obj1 = 0 ;
24089 PyObject * obj2 = 0 ;
24092 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpRib6_lookup",&obj0,&obj1,&obj2)) SWIG_fail;
24093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
24094 if (!SWIG_IsOK(res1)) {
24095 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_lookup" "', argument " "1"" of type '" "libbgp::BgpRib6 const *""'");
24098 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
24099 if (!SWIG_IsOK(ecode2)) {
24100 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpRib6_lookup" "', argument " "2"" of type '" "uint32_t""'");
24102 arg2 =
static_cast< uint32_t
>(val2);
24103 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
24104 if (!SWIG_IsOK(res3)) {
24105 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpRib6_lookup" "', argument " "3"" of type '" "uint8_t const [16]""'");
24107 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
24109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpRib6Entry, 0 | 0 );
24116 SWIGINTERN PyObject *_wrap_BgpRib6_lookup(PyObject *
self, PyObject *args) {
24118 PyObject *argv[4] = {
24123 if (!PyTuple_Check(args)) SWIG_fail;
24124 argc = args ? PyObject_Length(args) : 0;
24125 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
24126 argv[ii] = PyTuple_GET_ITEM(args,ii);
24131 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
24132 _v = SWIG_CheckState(res);
24135 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
24136 _v = SWIG_CheckState(res);
24138 return _wrap_BgpRib6_lookup__SWIG_0(
self, args);
24145 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpRib6, 0);
24146 _v = SWIG_CheckState(res);
24149 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
24150 _v = SWIG_CheckState(res);
24154 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
24155 _v = SWIG_CheckState(res);
24157 return _wrap_BgpRib6_lookup__SWIG_1(
self, args);
24164 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpRib6_lookup'.\n" 24165 " Possible C/C++ prototypes are:\n" 24166 " libbgp::BgpRib6::lookup(uint8_t const [16]) const\n" 24167 " libbgp::BgpRib6::lookup(uint32_t,uint8_t const [16]) const\n");
24172 SWIGINTERN PyObject *_wrap_BgpRib6_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24173 PyObject *resultobj = 0;
24177 PyObject * obj0 = 0 ;
24178 std::vector< libbgp::BgpRib6Entry > *result = 0 ;
24180 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpRib6_get",&obj0)) SWIG_fail;
24181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, 0 | 0 );
24182 if (!SWIG_IsOK(res1)) {
24183 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpRib6_get" "', argument " "1"" of type '" "libbgp::BgpRib6 const *""'");
24186 result = (std::vector< libbgp::BgpRib6Entry > *) &((
libbgp::BgpRib6 const *)arg1)->
get();
24187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__BgpRib6Entry_t, 0 | 0 );
24194 SWIGINTERN PyObject *_wrap_delete_BgpRib6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24195 PyObject *resultobj = 0;
24199 PyObject * obj0 = 0 ;
24201 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpRib6",&obj0)) SWIG_fail;
24202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpRib6, SWIG_POINTER_DISOWN | 0 );
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpRib6" "', argument " "1"" of type '" "libbgp::BgpRib6 *""'");
24208 resultobj = SWIG_Py_Void();
24215 SWIGINTERN PyObject *BgpRib6_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24217 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
24218 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpRib6, SWIG_NewClientData(obj));
24219 return SWIG_Py_Void();
24222 SWIGINTERN PyObject *_wrap_new_BgpSink(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24223 PyObject *resultobj = 0;
24227 PyObject * obj0 = 0 ;
24230 if (!PyArg_ParseTuple(args,(
char *)
"O:new_BgpSink",&obj0)) SWIG_fail;
24231 ecode1 = SWIG_AsVal_bool(obj0, &val1);
24232 if (!SWIG_IsOK(ecode1)) {
24233 SWIG_exception_fail(SWIG_ArgError(ecode1),
"in method '" "new_BgpSink" "', argument " "1"" of type '" "bool""'");
24235 arg1 =
static_cast< bool >(val1);
24237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpSink, SWIG_POINTER_NEW | 0 );
24244 SWIGINTERN PyObject *_wrap_BgpSink_fill(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24245 PyObject *resultobj = 0;
24247 uint8_t *arg2 = (uint8_t *) 0 ;
24255 PyObject * obj0 = 0 ;
24256 PyObject * obj1 = 0 ;
24257 PyObject * obj2 = 0 ;
24260 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpSink_fill",&obj0,&obj1,&obj2)) SWIG_fail;
24261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpSink, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpSink_fill" "', argument " "1"" of type '" "libbgp::BgpSink *""'");
24266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
24267 if (!SWIG_IsOK(res2)) {
24268 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpSink_fill" "', argument " "2"" of type '" "uint8_t const *""'");
24270 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
24271 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
24272 if (!SWIG_IsOK(ecode3)) {
24273 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpSink_fill" "', argument " "3"" of type '" "size_t""'");
24275 arg3 =
static_cast< size_t >(val3);
24276 result = (arg1)->fill((uint8_t
const *)arg2,arg3);
24277 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
24284 SWIGINTERN PyObject *_wrap_BgpSink_pour(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24285 PyObject *resultobj = 0;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24296 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpSink_pour",&obj0,&obj1)) SWIG_fail;
24297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpSink, 0 | 0 );
24298 if (!SWIG_IsOK(res1)) {
24299 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpSink_pour" "', argument " "1"" of type '" "libbgp::BgpSink *""'");
24302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_libbgp__BgpPacket, 0 | 0 );
24303 if (!SWIG_IsOK(res2)) {
24304 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpSink_pour" "', argument " "2"" of type '" "libbgp::BgpPacket **""'");
24307 result = (arg1)->pour(arg2);
24308 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
24315 SWIGINTERN PyObject *_wrap_BgpSink_getBytesInSink(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24316 PyObject *resultobj = 0;
24320 PyObject * obj0 = 0 ;
24323 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpSink_getBytesInSink",&obj0)) SWIG_fail;
24324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpSink, 0 | 0 );
24325 if (!SWIG_IsOK(res1)) {
24326 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpSink_getBytesInSink" "', argument " "1"" of type '" "libbgp::BgpSink const *""'");
24330 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
24337 SWIGINTERN PyObject *_wrap_BgpSink_drain(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24338 PyObject *resultobj = 0;
24342 PyObject * obj0 = 0 ;
24344 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpSink_drain",&obj0)) SWIG_fail;
24345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpSink, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpSink_drain" "', argument " "1"" of type '" "libbgp::BgpSink *""'");
24351 resultobj = SWIG_Py_Void();
24358 SWIGINTERN PyObject *_wrap_BgpSink_setLogger(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24359 PyObject *resultobj = 0;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24369 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpSink_setLogger",&obj0,&obj1)) SWIG_fail;
24370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpSink, 0 | 0 );
24371 if (!SWIG_IsOK(res1)) {
24372 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpSink_setLogger" "', argument " "1"" of type '" "libbgp::BgpSink *""'");
24375 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
24376 if (!SWIG_IsOK(res2)) {
24377 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpSink_setLogger" "', argument " "2"" of type '" "libbgp::BgpLogHandler *""'");
24380 (arg1)->setLogger(arg2);
24381 resultobj = SWIG_Py_Void();
24388 SWIGINTERN PyObject *_wrap_delete_BgpSink(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24389 PyObject *resultobj = 0;
24393 PyObject * obj0 = 0 ;
24395 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpSink",&obj0)) SWIG_fail;
24396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpSink, SWIG_POINTER_DISOWN | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpSink" "', argument " "1"" of type '" "libbgp::BgpSink *""'");
24402 resultobj = SWIG_Py_Void();
24409 SWIGINTERN PyObject *BgpSink_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24411 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
24412 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpSink, SWIG_NewClientData(obj));
24413 return SWIG_Py_Void();
24416 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_withdrawn_routes_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24417 PyObject *resultobj = 0;
24419 std::vector< libbgp::Prefix4 > *arg2 = (std::vector< libbgp::Prefix4 > *) 0 ;
24424 PyObject * obj0 = 0 ;
24425 PyObject * obj1 = 0 ;
24427 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_withdrawn_routes_set",&obj0,&obj1)) SWIG_fail;
24428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24429 if (!SWIG_IsOK(res1)) {
24430 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_withdrawn_routes_set" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24433 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0 );
24434 if (!SWIG_IsOK(res2)) {
24435 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_withdrawn_routes_set" "', argument " "2"" of type '" "std::vector< libbgp::Prefix4 > *""'");
24437 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp2);
24438 if (arg1) (arg1)->withdrawn_routes = *arg2;
24439 resultobj = SWIG_Py_Void();
24446 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_withdrawn_routes_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24447 PyObject *resultobj = 0;
24451 PyObject * obj0 = 0 ;
24452 std::vector< libbgp::Prefix4 > *result = 0 ;
24454 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_withdrawn_routes_get",&obj0)) SWIG_fail;
24455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24456 if (!SWIG_IsOK(res1)) {
24457 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_withdrawn_routes_get" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24460 result = (std::vector< libbgp::Prefix4 > *)& ((arg1)->withdrawn_routes);
24461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0 );
24468 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_path_attribute_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24469 PyObject *resultobj = 0;
24471 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg2 = (std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *) 0 ;
24476 PyObject * obj0 = 0 ;
24477 PyObject * obj1 = 0 ;
24479 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_path_attribute_set",&obj0,&obj1)) SWIG_fail;
24480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24481 if (!SWIG_IsOK(res1)) {
24482 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_path_attribute_set" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24485 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0 );
24486 if (!SWIG_IsOK(res2)) {
24487 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_path_attribute_set" "', argument " "2"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *""'");
24489 arg2 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp2);
24490 if (arg1) (arg1)->path_attribute = *arg2;
24491 resultobj = SWIG_Py_Void();
24498 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_path_attribute_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24499 PyObject *resultobj = 0;
24503 PyObject * obj0 = 0 ;
24504 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *result = 0 ;
24506 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_path_attribute_get",&obj0)) SWIG_fail;
24507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24508 if (!SWIG_IsOK(res1)) {
24509 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_path_attribute_get" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24512 result = (std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *)& ((arg1)->path_attribute);
24513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0 );
24520 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_nlri_set(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24521 PyObject *resultobj = 0;
24523 std::vector< libbgp::Prefix4 > *arg2 = (std::vector< libbgp::Prefix4 > *) 0 ;
24528 PyObject * obj0 = 0 ;
24529 PyObject * obj1 = 0 ;
24531 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_nlri_set",&obj0,&obj1)) SWIG_fail;
24532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24533 if (!SWIG_IsOK(res1)) {
24534 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_nlri_set" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24537 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0 );
24538 if (!SWIG_IsOK(res2)) {
24539 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_nlri_set" "', argument " "2"" of type '" "std::vector< libbgp::Prefix4 > *""'");
24541 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp2);
24542 if (arg1) (arg1)->nlri = *arg2;
24543 resultobj = SWIG_Py_Void();
24550 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_nlri_get(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24551 PyObject *resultobj = 0;
24555 PyObject * obj0 = 0 ;
24556 std::vector< libbgp::Prefix4 > *result = 0 ;
24558 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_nlri_get",&obj0)) SWIG_fail;
24559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24560 if (!SWIG_IsOK(res1)) {
24561 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_nlri_get" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24564 result = (std::vector< libbgp::Prefix4 > *)& ((arg1)->nlri);
24565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0 );
24572 SWIGINTERN PyObject *_wrap_new_BgpUpdateMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24573 PyObject *resultobj = 0;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24584 if (!PyArg_ParseTuple(args,(
char *)
"OO:new_BgpUpdateMessage",&obj0,&obj1)) SWIG_fail;
24585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpLogHandler, 0 | 0 );
24586 if (!SWIG_IsOK(res1)) {
24587 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "new_BgpUpdateMessage" "', argument " "1"" of type '" "libbgp::BgpLogHandler *""'");
24590 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24591 if (!SWIG_IsOK(ecode2)) {
24592 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "new_BgpUpdateMessage" "', argument " "2"" of type '" "bool""'");
24594 arg2 =
static_cast< bool >(val2);
24596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpUpdateMessage, SWIG_POINTER_NEW | 0 );
24603 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_getAttrib__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24604 PyObject *resultobj = 0;
24609 unsigned char val2 ;
24611 PyObject * obj0 = 0 ;
24612 PyObject * obj1 = 0 ;
24615 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_getAttrib",&obj0,&obj1)) SWIG_fail;
24616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24617 if (!SWIG_IsOK(res1)) {
24618 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_getAttrib" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24621 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
24622 if (!SWIG_IsOK(ecode2)) {
24623 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_getAttrib" "', argument " "2"" of type '" "uint8_t""'");
24625 arg2 =
static_cast< uint8_t
>(val2);
24627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
24634 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_getAttrib__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24635 PyObject *resultobj = 0;
24640 unsigned char val2 ;
24642 PyObject * obj0 = 0 ;
24643 PyObject * obj1 = 0 ;
24646 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_getAttrib",&obj0,&obj1)) SWIG_fail;
24647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24648 if (!SWIG_IsOK(res1)) {
24649 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_getAttrib" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage const *""'");
24652 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
24653 if (!SWIG_IsOK(ecode2)) {
24654 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_getAttrib" "', argument " "2"" of type '" "uint8_t""'");
24656 arg2 =
static_cast< uint8_t
>(val2);
24658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0 );
24665 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_getAttrib(PyObject *
self, PyObject *args) {
24667 PyObject *argv[3] = {
24672 if (!PyTuple_Check(args)) SWIG_fail;
24673 argc = args ? PyObject_Length(args) : 0;
24674 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
24675 argv[ii] = PyTuple_GET_ITEM(args,ii);
24680 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpUpdateMessage, 0);
24681 _v = SWIG_CheckState(res);
24684 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
24685 _v = SWIG_CheckState(res);
24688 return _wrap_BgpUpdateMessage_getAttrib__SWIG_0(
self, args);
24695 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpUpdateMessage, 0);
24696 _v = SWIG_CheckState(res);
24699 int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL);
24700 _v = SWIG_CheckState(res);
24703 return _wrap_BgpUpdateMessage_getAttrib__SWIG_1(
self, args);
24709 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpUpdateMessage_getAttrib'.\n" 24710 " Possible C/C++ prototypes are:\n" 24711 " libbgp::BgpUpdateMessage::getAttrib(uint8_t)\n" 24712 " libbgp::BgpUpdateMessage::getAttrib(uint8_t) const\n");
24717 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_hasAttrib(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24718 PyObject *resultobj = 0;
24723 unsigned char val2 ;
24725 PyObject * obj0 = 0 ;
24726 PyObject * obj1 = 0 ;
24729 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_hasAttrib",&obj0,&obj1)) SWIG_fail;
24730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24731 if (!SWIG_IsOK(res1)) {
24732 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_hasAttrib" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage const *""'");
24735 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
24736 if (!SWIG_IsOK(ecode2)) {
24737 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_hasAttrib" "', argument " "2"" of type '" "uint8_t""'");
24739 arg2 =
static_cast< uint8_t
>(val2);
24741 resultobj = SWIG_From_bool(static_cast< bool >(result));
24748 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addAttrib(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24749 PyObject *resultobj = 0;
24756 PyObject * obj0 = 0 ;
24757 PyObject * obj1 = 0 ;
24760 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_addAttrib",&obj0,&obj1)) SWIG_fail;
24761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24762 if (!SWIG_IsOK(res1)) {
24763 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_addAttrib" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0);
24767 if (!SWIG_IsOK(res2)) {
24768 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_addAttrib" "', argument " "2"" of type '" "libbgp::BgpPathAttrib const &""'");
24771 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_addAttrib" "', argument " "2"" of type '" "libbgp::BgpPathAttrib const &""'");
24775 resultobj = SWIG_From_bool(static_cast< bool >(result));
24782 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_setAttribs(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24783 PyObject *resultobj = 0;
24785 std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *arg2 = 0 ;
24790 PyObject * obj0 = 0 ;
24791 PyObject * obj1 = 0 ;
24794 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_setAttribs",&obj0,&obj1)) SWIG_fail;
24795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24796 if (!SWIG_IsOK(res1)) {
24797 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_setAttribs" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0 | 0);
24801 if (!SWIG_IsOK(res2)) {
24802 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_setAttribs" "', argument " "2"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
24805 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_setAttribs" "', argument " "2"" of type '" "std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > const &""'");
24807 arg2 =
reinterpret_cast< std::vector< std::shared_ptr< libbgp::BgpPathAttrib >
> * >(argp2);
24808 result = (bool)(arg1)->setAttribs((std::vector< std::shared_ptr< libbgp::BgpPathAttrib > >
const &)*arg2);
24809 resultobj = SWIG_From_bool(static_cast< bool >(result));
24816 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_dropAttrib(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24817 PyObject *resultobj = 0;
24822 unsigned char val2 ;
24824 PyObject * obj0 = 0 ;
24825 PyObject * obj1 = 0 ;
24828 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_dropAttrib",&obj0,&obj1)) SWIG_fail;
24829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24830 if (!SWIG_IsOK(res1)) {
24831 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_dropAttrib" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24834 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
24835 if (!SWIG_IsOK(ecode2)) {
24836 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_dropAttrib" "', argument " "2"" of type '" "uint8_t""'");
24838 arg2 =
static_cast< uint8_t
>(val2);
24839 result = (bool)(arg1)->dropAttrib(arg2);
24840 resultobj = SWIG_From_bool(static_cast< bool >(result));
24847 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_updateAttribute(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24848 PyObject *resultobj = 0;
24855 PyObject * obj0 = 0 ;
24856 PyObject * obj1 = 0 ;
24859 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_updateAttribute",&obj0,&obj1)) SWIG_fail;
24860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24861 if (!SWIG_IsOK(res1)) {
24862 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_updateAttribute" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__BgpPathAttrib, 0 | 0);
24866 if (!SWIG_IsOK(res2)) {
24867 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_updateAttribute" "', argument " "2"" of type '" "libbgp::BgpPathAttrib const &""'");
24870 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_updateAttribute" "', argument " "2"" of type '" "libbgp::BgpPathAttrib const &""'");
24874 resultobj = SWIG_From_bool(static_cast< bool >(result));
24881 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_dropNonTransitive(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24882 PyObject *resultobj = 0;
24886 PyObject * obj0 = 0 ;
24889 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_dropNonTransitive",&obj0)) SWIG_fail;
24890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24891 if (!SWIG_IsOK(res1)) {
24892 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_dropNonTransitive" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24896 resultobj = SWIG_From_bool(static_cast< bool >(result));
24903 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_setNextHop(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24904 PyObject *resultobj = 0;
24909 unsigned int val2 ;
24911 PyObject * obj0 = 0 ;
24912 PyObject * obj1 = 0 ;
24915 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_setNextHop",&obj0,&obj1)) SWIG_fail;
24916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24917 if (!SWIG_IsOK(res1)) {
24918 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_setNextHop" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24921 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
24922 if (!SWIG_IsOK(ecode2)) {
24923 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_setNextHop" "', argument " "2"" of type '" "uint32_t""'");
24925 arg2 =
static_cast< uint32_t
>(val2);
24926 result = (bool)(arg1)->setNextHop(arg2);
24927 resultobj = SWIG_From_bool(static_cast< bool >(result));
24934 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_prepend(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24935 PyObject *resultobj = 0;
24940 unsigned int val2 ;
24942 PyObject * obj0 = 0 ;
24943 PyObject * obj1 = 0 ;
24946 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_prepend",&obj0,&obj1)) SWIG_fail;
24947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24948 if (!SWIG_IsOK(res1)) {
24949 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_prepend" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24952 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
24953 if (!SWIG_IsOK(ecode2)) {
24954 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_prepend" "', argument " "2"" of type '" "uint32_t""'");
24956 arg2 =
static_cast< uint32_t
>(val2);
24957 result = (bool)(arg1)->prepend(arg2);
24958 resultobj = SWIG_From_bool(static_cast< bool >(result));
24965 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_restoreAsPath(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24966 PyObject *resultobj = 0;
24970 PyObject * obj0 = 0 ;
24973 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_restoreAsPath",&obj0)) SWIG_fail;
24974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24975 if (!SWIG_IsOK(res1)) {
24976 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_restoreAsPath" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
24980 resultobj = SWIG_From_bool(static_cast< bool >(result));
24987 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_downgradeAsPath(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
24988 PyObject *resultobj = 0;
24992 PyObject * obj0 = 0 ;
24995 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_downgradeAsPath",&obj0)) SWIG_fail;
24996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
24997 if (!SWIG_IsOK(res1)) {
24998 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_downgradeAsPath" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25002 resultobj = SWIG_From_bool(static_cast< bool >(result));
25009 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_restoreAggregator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25010 PyObject *resultobj = 0;
25014 PyObject * obj0 = 0 ;
25017 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_restoreAggregator",&obj0)) SWIG_fail;
25018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25019 if (!SWIG_IsOK(res1)) {
25020 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_restoreAggregator" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25024 resultobj = SWIG_From_bool(static_cast< bool >(result));
25031 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_downgradeAggregator(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25032 PyObject *resultobj = 0;
25036 PyObject * obj0 = 0 ;
25039 if (!PyArg_ParseTuple(args,(
char *)
"O:BgpUpdateMessage_downgradeAggregator",&obj0)) SWIG_fail;
25040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25041 if (!SWIG_IsOK(res1)) {
25042 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_downgradeAggregator" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25046 resultobj = SWIG_From_bool(static_cast< bool >(result));
25053 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_setWithdrawn4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25054 PyObject *resultobj = 0;
25056 std::vector< libbgp::Prefix4 > *arg2 = 0 ;
25061 PyObject * obj0 = 0 ;
25062 PyObject * obj1 = 0 ;
25065 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_setWithdrawn4",&obj0,&obj1)) SWIG_fail;
25066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_setWithdrawn4" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
25072 if (!SWIG_IsOK(res2)) {
25073 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_setWithdrawn4" "', argument " "2"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
25076 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_setWithdrawn4" "', argument " "2"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
25078 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp2);
25079 result = (bool)(arg1)->setWithdrawn4((std::vector< libbgp::Prefix4 >
const &)*arg2);
25080 resultobj = SWIG_From_bool(static_cast< bool >(result));
25087 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addWithdrawn4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25088 PyObject *resultobj = 0;
25094 unsigned int val2 ;
25096 unsigned char val3 ;
25098 PyObject * obj0 = 0 ;
25099 PyObject * obj1 = 0 ;
25100 PyObject * obj2 = 0 ;
25103 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpUpdateMessage_addWithdrawn4",&obj0,&obj1,&obj2)) SWIG_fail;
25104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25105 if (!SWIG_IsOK(res1)) {
25106 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_addWithdrawn4" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25109 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
25110 if (!SWIG_IsOK(ecode2)) {
25111 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_addWithdrawn4" "', argument " "2"" of type '" "uint32_t""'");
25113 arg2 =
static_cast< uint32_t
>(val2);
25114 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
25115 if (!SWIG_IsOK(ecode3)) {
25116 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpUpdateMessage_addWithdrawn4" "', argument " "3"" of type '" "uint8_t""'");
25118 arg3 =
static_cast< uint8_t
>(val3);
25119 result = (bool)(arg1)->addWithdrawn4(arg2,arg3);
25120 resultobj = SWIG_From_bool(static_cast< bool >(result));
25127 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addWithdrawn4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25128 PyObject *resultobj = 0;
25135 PyObject * obj0 = 0 ;
25136 PyObject * obj1 = 0 ;
25139 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_addWithdrawn4",&obj0,&obj1)) SWIG_fail;
25140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25141 if (!SWIG_IsOK(res1)) {
25142 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_addWithdrawn4" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
25146 if (!SWIG_IsOK(res2)) {
25147 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_addWithdrawn4" "', argument " "2"" of type '" "libbgp::Prefix4 const &""'");
25150 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_addWithdrawn4" "', argument " "2"" of type '" "libbgp::Prefix4 const &""'");
25153 result = (bool)(arg1)->addWithdrawn4((
libbgp::Prefix4 const &)*arg2);
25154 resultobj = SWIG_From_bool(static_cast< bool >(result));
25161 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addWithdrawn4(PyObject *
self, PyObject *args) {
25163 PyObject *argv[4] = {
25168 if (!PyTuple_Check(args)) SWIG_fail;
25169 argc = args ? PyObject_Length(args) : 0;
25170 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25171 argv[ii] = PyTuple_GET_ITEM(args,ii);
25176 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpUpdateMessage, 0);
25177 _v = SWIG_CheckState(res);
25179 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
25180 _v = SWIG_CheckState(res);
25182 return _wrap_BgpUpdateMessage_addWithdrawn4__SWIG_1(
self, args);
25189 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpUpdateMessage, 0);
25190 _v = SWIG_CheckState(res);
25193 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
25194 _v = SWIG_CheckState(res);
25198 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
25199 _v = SWIG_CheckState(res);
25202 return _wrap_BgpUpdateMessage_addWithdrawn4__SWIG_0(
self, args);
25209 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpUpdateMessage_addWithdrawn4'.\n" 25210 " Possible C/C++ prototypes are:\n" 25211 " libbgp::BgpUpdateMessage::addWithdrawn4(uint32_t,uint8_t)\n" 25212 " libbgp::BgpUpdateMessage::addWithdrawn4(libbgp::Prefix4 const &)\n");
25217 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_setNlri4(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25218 PyObject *resultobj = 0;
25220 std::vector< libbgp::Prefix4 > *arg2 = 0 ;
25225 PyObject * obj0 = 0 ;
25226 PyObject * obj1 = 0 ;
25229 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_setNlri4",&obj0,&obj1)) SWIG_fail;
25230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25231 if (!SWIG_IsOK(res1)) {
25232 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_setNlri4" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_libbgp__Prefix4_t, 0 | 0);
25236 if (!SWIG_IsOK(res2)) {
25237 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_setNlri4" "', argument " "2"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
25240 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_setNlri4" "', argument " "2"" of type '" "std::vector< libbgp::Prefix4 > const &""'");
25242 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix4 > *
>(argp2);
25243 result = (bool)(arg1)->setNlri4((std::vector< libbgp::Prefix4 >
const &)*arg2);
25244 resultobj = SWIG_From_bool(static_cast< bool >(result));
25251 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addNlri4__SWIG_0(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25252 PyObject *resultobj = 0;
25258 unsigned int val2 ;
25260 unsigned char val3 ;
25262 PyObject * obj0 = 0 ;
25263 PyObject * obj1 = 0 ;
25264 PyObject * obj2 = 0 ;
25267 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpUpdateMessage_addNlri4",&obj0,&obj1,&obj2)) SWIG_fail;
25268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25269 if (!SWIG_IsOK(res1)) {
25270 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_addNlri4" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25273 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
25274 if (!SWIG_IsOK(ecode2)) {
25275 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_addNlri4" "', argument " "2"" of type '" "uint32_t""'");
25277 arg2 =
static_cast< uint32_t
>(val2);
25278 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
25279 if (!SWIG_IsOK(ecode3)) {
25280 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpUpdateMessage_addNlri4" "', argument " "3"" of type '" "uint8_t""'");
25282 arg3 =
static_cast< uint8_t
>(val3);
25283 result = (bool)(arg1)->addNlri4(arg2,arg3);
25284 resultobj = SWIG_From_bool(static_cast< bool >(result));
25291 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addNlri4__SWIG_1(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25292 PyObject *resultobj = 0;
25299 PyObject * obj0 = 0 ;
25300 PyObject * obj1 = 0 ;
25303 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_addNlri4",&obj0,&obj1)) SWIG_fail;
25304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_addNlri4" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_libbgp__Prefix4, 0 | 0);
25310 if (!SWIG_IsOK(res2)) {
25311 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_addNlri4" "', argument " "2"" of type '" "libbgp::Prefix4 const &""'");
25314 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_addNlri4" "', argument " "2"" of type '" "libbgp::Prefix4 const &""'");
25318 resultobj = SWIG_From_bool(static_cast< bool >(result));
25325 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_addNlri4(PyObject *
self, PyObject *args) {
25327 PyObject *argv[4] = {
25332 if (!PyTuple_Check(args)) SWIG_fail;
25333 argc = args ? PyObject_Length(args) : 0;
25334 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25335 argv[ii] = PyTuple_GET_ITEM(args,ii);
25340 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpUpdateMessage, 0);
25341 _v = SWIG_CheckState(res);
25343 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_libbgp__Prefix4, 0);
25344 _v = SWIG_CheckState(res);
25346 return _wrap_BgpUpdateMessage_addNlri4__SWIG_1(
self, args);
25353 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_libbgp__BgpUpdateMessage, 0);
25354 _v = SWIG_CheckState(res);
25357 int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
25358 _v = SWIG_CheckState(res);
25362 int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL);
25363 _v = SWIG_CheckState(res);
25366 return _wrap_BgpUpdateMessage_addNlri4__SWIG_0(
self, args);
25373 SWIG_SetErrorMsg(PyExc_NotImplementedError,
"Wrong number or type of arguments for overloaded function 'BgpUpdateMessage_addNlri4'.\n" 25374 " Possible C/C++ prototypes are:\n" 25375 " libbgp::BgpUpdateMessage::addNlri4(uint32_t,uint8_t)\n" 25376 " libbgp::BgpUpdateMessage::addNlri4(libbgp::Prefix4 const &)\n");
25381 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_setWithdrawn6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25382 PyObject *resultobj = 0;
25384 std::vector< libbgp::Prefix6 > *arg2 = 0 ;
25389 PyObject * obj0 = 0 ;
25390 PyObject * obj1 = 0 ;
25393 if (!PyArg_ParseTuple(args,(
char *)
"OO:BgpUpdateMessage_setWithdrawn6",&obj0,&obj1)) SWIG_fail;
25394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25395 if (!SWIG_IsOK(res1)) {
25396 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_setWithdrawn6" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
25400 if (!SWIG_IsOK(res2)) {
25401 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_setWithdrawn6" "', argument " "2"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
25404 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_setWithdrawn6" "', argument " "2"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
25406 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp2);
25407 result = (bool)(arg1)->setWithdrawn6((std::vector< libbgp::Prefix6 >
const &)*arg2);
25408 resultobj = SWIG_From_bool(static_cast< bool >(result));
25415 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_setNlri6(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25416 PyObject *resultobj = 0;
25418 std::vector< libbgp::Prefix6 > *arg2 = 0 ;
25429 PyObject * obj0 = 0 ;
25430 PyObject * obj1 = 0 ;
25431 PyObject * obj2 = 0 ;
25432 PyObject * obj3 = 0 ;
25435 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpUpdateMessage_setNlri6",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25437 if (!SWIG_IsOK(res1)) {
25438 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_setNlri6" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_libbgp__Prefix6_t, 0 | 0);
25442 if (!SWIG_IsOK(res2)) {
25443 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_setNlri6" "', argument " "2"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
25446 SWIG_exception_fail(SWIG_ValueError,
"invalid null reference " "in method '" "BgpUpdateMessage_setNlri6" "', argument " "2"" of type '" "std::vector< libbgp::Prefix6 > const &""'");
25448 arg2 =
reinterpret_cast< std::vector< libbgp::Prefix6 > *
>(argp2);
25449 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
25450 if (!SWIG_IsOK(res3)) {
25451 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpUpdateMessage_setNlri6" "', argument " "3"" of type '" "uint8_t const [16]""'");
25453 arg3 =
reinterpret_cast< uint8_t *
>(argp3);
25454 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
25455 if (!SWIG_IsOK(res4)) {
25456 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpUpdateMessage_setNlri6" "', argument " "4"" of type '" "uint8_t const [16]""'");
25458 arg4 =
reinterpret_cast< uint8_t *
>(argp4);
25459 result = (bool)(arg1)->setNlri6((std::vector< libbgp::Prefix6 >
const &)*arg2,(uint8_t
const (*))arg3,(uint8_t
const (*))arg4);
25460 resultobj = SWIG_From_bool(static_cast< bool >(result));
25467 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_doPrint(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25468 PyObject *resultobj = 0;
25471 uint8_t **arg3 = (uint8_t **) 0 ;
25472 size_t *arg4 = (
size_t *) 0 ;
25481 PyObject * obj0 = 0 ;
25482 PyObject * obj1 = 0 ;
25483 PyObject * obj2 = 0 ;
25484 PyObject * obj3 = 0 ;
25487 if (!PyArg_ParseTuple(args,(
char *)
"OOOO:BgpUpdateMessage_doPrint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25489 if (!SWIG_IsOK(res1)) {
25490 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_doPrint" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage const *""'");
25493 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
25494 if (!SWIG_IsOK(ecode2)) {
25495 SWIG_exception_fail(SWIG_ArgError(ecode2),
"in method '" "BgpUpdateMessage_doPrint" "', argument " "2"" of type '" "size_t""'");
25497 arg2 =
static_cast< size_t >(val2);
25498 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
25499 if (!SWIG_IsOK(res3)) {
25500 SWIG_exception_fail(SWIG_ArgError(res3),
"in method '" "BgpUpdateMessage_doPrint" "', argument " "3"" of type '" "uint8_t **""'");
25502 arg3 =
reinterpret_cast< uint8_t **
>(argp3);
25503 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_size_t, 0 | 0 );
25504 if (!SWIG_IsOK(res4)) {
25505 SWIG_exception_fail(SWIG_ArgError(res4),
"in method '" "BgpUpdateMessage_doPrint" "', argument " "4"" of type '" "size_t *""'");
25507 arg4 =
reinterpret_cast< size_t *
>(argp4);
25509 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
25516 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_parse(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25517 PyObject *resultobj = 0;
25519 uint8_t *arg2 = (uint8_t *) 0 ;
25527 PyObject * obj0 = 0 ;
25528 PyObject * obj1 = 0 ;
25529 PyObject * obj2 = 0 ;
25532 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpUpdateMessage_parse",&obj0,&obj1,&obj2)) SWIG_fail;
25533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25534 if (!SWIG_IsOK(res1)) {
25535 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_parse" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
25539 if (!SWIG_IsOK(res2)) {
25540 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_parse" "', argument " "2"" of type '" "uint8_t const *""'");
25542 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
25543 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
25544 if (!SWIG_IsOK(ecode3)) {
25545 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpUpdateMessage_parse" "', argument " "3"" of type '" "size_t""'");
25547 arg3 =
static_cast< size_t >(val3);
25548 result = (arg1)->parse((uint8_t
const *)arg2,arg3);
25549 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
25556 SWIGINTERN PyObject *_wrap_BgpUpdateMessage_write(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25557 PyObject *resultobj = 0;
25559 uint8_t *arg2 = (uint8_t *) 0 ;
25567 PyObject * obj0 = 0 ;
25568 PyObject * obj1 = 0 ;
25569 PyObject * obj2 = 0 ;
25572 if (!PyArg_ParseTuple(args,(
char *)
"OOO:BgpUpdateMessage_write",&obj0,&obj1,&obj2)) SWIG_fail;
25573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, 0 | 0 );
25574 if (!SWIG_IsOK(res1)) {
25575 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "BgpUpdateMessage_write" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage const *""'");
25578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
25579 if (!SWIG_IsOK(res2)) {
25580 SWIG_exception_fail(SWIG_ArgError(res2),
"in method '" "BgpUpdateMessage_write" "', argument " "2"" of type '" "uint8_t *""'");
25582 arg2 =
reinterpret_cast< uint8_t *
>(argp2);
25583 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
25584 if (!SWIG_IsOK(ecode3)) {
25585 SWIG_exception_fail(SWIG_ArgError(ecode3),
"in method '" "BgpUpdateMessage_write" "', argument " "3"" of type '" "size_t""'");
25587 arg3 =
static_cast< size_t >(val3);
25589 resultobj = SWIG_NewPointerObj((
new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 );
25596 SWIGINTERN PyObject *_wrap_delete_BgpUpdateMessage(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25597 PyObject *resultobj = 0;
25601 PyObject * obj0 = 0 ;
25603 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_BgpUpdateMessage",&obj0)) SWIG_fail;
25604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__BgpUpdateMessage, SWIG_POINTER_DISOWN | 0 );
25605 if (!SWIG_IsOK(res1)) {
25606 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_BgpUpdateMessage" "', argument " "1"" of type '" "libbgp::BgpUpdateMessage *""'");
25610 resultobj = SWIG_Py_Void();
25617 SWIGINTERN PyObject *BgpUpdateMessage_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25619 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
25620 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__BgpUpdateMessage, SWIG_NewClientData(obj));
25621 return SWIG_Py_Void();
25624 SWIGINTERN PyObject *_wrap_Clock_getTime(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25625 PyObject *resultobj = 0;
25629 PyObject * obj0 = 0 ;
25632 if (!PyArg_ParseTuple(args,(
char *)
"O:Clock_getTime",&obj0)) SWIG_fail;
25633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Clock, 0 | 0 );
25634 if (!SWIG_IsOK(res1)) {
25635 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "Clock_getTime" "', argument " "1"" of type '" "libbgp::Clock const *""'");
25638 result = (uint64_t)((
libbgp::Clock const *)arg1)->getTime();
25639 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
25646 SWIGINTERN PyObject *_wrap_delete_Clock(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25647 PyObject *resultobj = 0;
25651 PyObject * obj0 = 0 ;
25653 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_Clock",&obj0)) SWIG_fail;
25654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__Clock, SWIG_POINTER_DISOWN | 0 );
25655 if (!SWIG_IsOK(res1)) {
25656 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_Clock" "', argument " "1"" of type '" "libbgp::Clock *""'");
25660 resultobj = SWIG_Py_Void();
25667 SWIGINTERN PyObject *Clock_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25669 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
25670 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__Clock, SWIG_NewClientData(obj));
25671 return SWIG_Py_Void();
25674 SWIGINTERN PyObject *_wrap_RealtimeClock_getTime(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25675 PyObject *resultobj = 0;
25679 PyObject * obj0 = 0 ;
25682 if (!PyArg_ParseTuple(args,(
char *)
"O:RealtimeClock_getTime",&obj0)) SWIG_fail;
25683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RealtimeClock, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "RealtimeClock_getTime" "', argument " "1"" of type '" "libbgp::RealtimeClock const *""'");
25689 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
25696 SWIGINTERN PyObject *_wrap_new_RealtimeClock(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25697 PyObject *resultobj = 0;
25700 if (!PyArg_ParseTuple(args,(
char *)
":new_RealtimeClock")) SWIG_fail;
25702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libbgp__RealtimeClock, SWIG_POINTER_NEW | 0 );
25709 SWIGINTERN PyObject *_wrap_delete_RealtimeClock(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25710 PyObject *resultobj = 0;
25714 PyObject * obj0 = 0 ;
25716 if (!PyArg_ParseTuple(args,(
char *)
"O:delete_RealtimeClock",&obj0)) SWIG_fail;
25717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_libbgp__RealtimeClock, SWIG_POINTER_DISOWN | 0 );
25718 if (!SWIG_IsOK(res1)) {
25719 SWIG_exception_fail(SWIG_ArgError(res1),
"in method '" "delete_RealtimeClock" "', argument " "1"" of type '" "libbgp::RealtimeClock *""'");
25723 resultobj = SWIG_Py_Void();
25730 SWIGINTERN PyObject *RealtimeClock_swigregister(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
25732 if (!PyArg_ParseTuple(args,(
char*)
"O:swigregister", &obj))
return NULL;
25733 SWIG_TypeNewClientData(SWIGTYPE_p_libbgp__RealtimeClock, SWIG_NewClientData(obj));
25734 return SWIG_Py_Void();
25737 static PyMethodDef SwigMethods[] = {
25738 { (
char *)
"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
25739 { (
char *)
"delete_Serializable", _wrap_delete_Serializable, METH_VARARGS, NULL},
25740 { (
char *)
"Serializable__print", _wrap_Serializable__print, METH_VARARGS, NULL},
25741 { (
char *)
"Serializable_parse", _wrap_Serializable_parse, METH_VARARGS, NULL},
25742 { (
char *)
"Serializable_write", _wrap_Serializable_write, METH_VARARGS, NULL},
25743 { (
char *)
"Serializable_length", _wrap_Serializable_length, METH_VARARGS, NULL},
25744 { (
char *)
"Serializable_hasError", _wrap_Serializable_hasError, METH_VARARGS, NULL},
25745 { (
char *)
"Serializable_getErrorCode", _wrap_Serializable_getErrorCode, METH_VARARGS, NULL},
25746 { (
char *)
"Serializable_getErrorSubCode", _wrap_Serializable_getErrorSubCode, METH_VARARGS, NULL},
25747 { (
char *)
"Serializable_getError", _wrap_Serializable_getError, METH_VARARGS, NULL},
25748 { (
char *)
"Serializable_getErrorLength", _wrap_Serializable_getErrorLength, METH_VARARGS, NULL},
25749 { (
char *)
"Serializable_setLogger", _wrap_Serializable_setLogger, METH_VARARGS, NULL},
25750 { (
char *)
"Serializable_swigregister", Serializable_swigregister, METH_VARARGS, NULL},
25751 { (
char *)
"RouteEvent_type_set", _wrap_RouteEvent_type_set, METH_VARARGS, NULL},
25752 { (
char *)
"RouteEvent_type_get", _wrap_RouteEvent_type_get, METH_VARARGS, NULL},
25753 { (
char *)
"delete_RouteEvent", _wrap_delete_RouteEvent, METH_VARARGS, NULL},
25754 { (
char *)
"new_RouteEvent", _wrap_new_RouteEvent, METH_VARARGS, NULL},
25755 { (
char *)
"RouteEvent_swigregister", RouteEvent_swigregister, METH_VARARGS, NULL},
25756 { (
char *)
"new_Route4AddEvent", _wrap_new_Route4AddEvent, METH_VARARGS, NULL},
25757 { (
char *)
"Route4AddEvent_attribs_set", _wrap_Route4AddEvent_attribs_set, METH_VARARGS, NULL},
25758 { (
char *)
"Route4AddEvent_attribs_get", _wrap_Route4AddEvent_attribs_get, METH_VARARGS, NULL},
25759 { (
char *)
"Route4AddEvent_routes_set", _wrap_Route4AddEvent_routes_set, METH_VARARGS, NULL},
25760 { (
char *)
"Route4AddEvent_routes_get", _wrap_Route4AddEvent_routes_get, METH_VARARGS, NULL},
25761 { (
char *)
"delete_Route4AddEvent", _wrap_delete_Route4AddEvent, METH_VARARGS, NULL},
25762 { (
char *)
"Route4AddEvent_swigregister", Route4AddEvent_swigregister, METH_VARARGS, NULL},
25763 { (
char *)
"new_Route4WithdrawEvent", _wrap_new_Route4WithdrawEvent, METH_VARARGS, NULL},
25764 { (
char *)
"Route4WithdrawEvent_routes_set", _wrap_Route4WithdrawEvent_routes_set, METH_VARARGS, NULL},
25765 { (
char *)
"Route4WithdrawEvent_routes_get", _wrap_Route4WithdrawEvent_routes_get, METH_VARARGS, NULL},
25766 { (
char *)
"delete_Route4WithdrawEvent", _wrap_delete_Route4WithdrawEvent, METH_VARARGS, NULL},
25767 { (
char *)
"Route4WithdrawEvent_swigregister", Route4WithdrawEvent_swigregister, METH_VARARGS, NULL},
25768 { (
char *)
"new_Route6AddEvent", _wrap_new_Route6AddEvent, METH_VARARGS, NULL},
25769 { (
char *)
"Route6AddEvent_attribs_set", _wrap_Route6AddEvent_attribs_set, METH_VARARGS, NULL},
25770 { (
char *)
"Route6AddEvent_attribs_get", _wrap_Route6AddEvent_attribs_get, METH_VARARGS, NULL},
25771 { (
char *)
"Route6AddEvent_routes_set", _wrap_Route6AddEvent_routes_set, METH_VARARGS, NULL},
25772 { (
char *)
"Route6AddEvent_routes_get", _wrap_Route6AddEvent_routes_get, METH_VARARGS, NULL},
25773 { (
char *)
"delete_Route6AddEvent", _wrap_delete_Route6AddEvent, METH_VARARGS, NULL},
25774 { (
char *)
"Route6AddEvent_swigregister", Route6AddEvent_swigregister, METH_VARARGS, NULL},
25775 { (
char *)
"new_Route6WithdrawEvent", _wrap_new_Route6WithdrawEvent, METH_VARARGS, NULL},
25776 { (
char *)
"Route6WithdrawEvent_routes_set", _wrap_Route6WithdrawEvent_routes_set, METH_VARARGS, NULL},
25777 { (
char *)
"Route6WithdrawEvent_routes_get", _wrap_Route6WithdrawEvent_routes_get, METH_VARARGS, NULL},
25778 { (
char *)
"delete_Route6WithdrawEvent", _wrap_delete_Route6WithdrawEvent, METH_VARARGS, NULL},
25779 { (
char *)
"Route6WithdrawEvent_swigregister", Route6WithdrawEvent_swigregister, METH_VARARGS, NULL},
25780 { (
char *)
"new_RouteCollisionEvent", _wrap_new_RouteCollisionEvent, METH_VARARGS, NULL},
25781 { (
char *)
"RouteCollisionEvent_peer_bgp_id_set", _wrap_RouteCollisionEvent_peer_bgp_id_set, METH_VARARGS, NULL},
25782 { (
char *)
"RouteCollisionEvent_peer_bgp_id_get", _wrap_RouteCollisionEvent_peer_bgp_id_get, METH_VARARGS, NULL},
25783 { (
char *)
"delete_RouteCollisionEvent", _wrap_delete_RouteCollisionEvent, METH_VARARGS, NULL},
25784 { (
char *)
"RouteCollisionEvent_swigregister", RouteCollisionEvent_swigregister, METH_VARARGS, NULL},
25785 { (
char *)
"delete_RouteEventReceiver", _wrap_delete_RouteEventReceiver, METH_VARARGS, NULL},
25786 { (
char *)
"RouteEventReceiver_swigregister", RouteEventReceiver_swigregister, METH_VARARGS, NULL},
25787 { (
char *)
"new_RouteEventBus", _wrap_new_RouteEventBus, METH_VARARGS, NULL},
25788 { (
char *)
"RouteEventBus_publish", _wrap_RouteEventBus_publish, METH_VARARGS, NULL},
25789 { (
char *)
"RouteEventBus_subscribe", _wrap_RouteEventBus_subscribe, METH_VARARGS, NULL},
25790 { (
char *)
"RouteEventBus_unsubscribe", _wrap_RouteEventBus_unsubscribe, METH_VARARGS, NULL},
25791 { (
char *)
"delete_RouteEventBus", _wrap_delete_RouteEventBus, METH_VARARGS, NULL},
25792 { (
char *)
"RouteEventBus_swigregister", RouteEventBus_swigregister, METH_VARARGS, NULL},
25793 { (
char *)
"cidr_to_mask", _wrap_cidr_to_mask, METH_VARARGS, NULL},
25794 { (
char *)
"Prefix_afi_set", _wrap_Prefix_afi_set, METH_VARARGS, NULL},
25795 { (
char *)
"Prefix_afi_get", _wrap_Prefix_afi_get, METH_VARARGS, NULL},
25796 { (
char *)
"Prefix_parse", _wrap_Prefix_parse, METH_VARARGS, NULL},
25797 { (
char *)
"Prefix_write", _wrap_Prefix_write, METH_VARARGS, NULL},
25798 { (
char *)
"Prefix_includes", _wrap_Prefix_includes, METH_VARARGS, NULL},
25799 { (
char *)
"Prefix___eq__", _wrap_Prefix___eq__, METH_VARARGS, NULL},
25800 { (
char *)
"Prefix___gt__", _wrap_Prefix___gt__, METH_VARARGS, NULL},
25801 { (
char *)
"Prefix___lt__", _wrap_Prefix___lt__, METH_VARARGS, NULL},
25802 { (
char *)
"Prefix___ge__", _wrap_Prefix___ge__, METH_VARARGS, NULL},
25803 { (
char *)
"Prefix___le__", _wrap_Prefix___le__, METH_VARARGS, NULL},
25804 { (
char *)
"Prefix___ne__", _wrap_Prefix___ne__, METH_VARARGS, NULL},
25805 { (
char *)
"delete_Prefix", _wrap_delete_Prefix, METH_VARARGS, NULL},
25806 { (
char *)
"Prefix_swigregister", Prefix_swigregister, METH_VARARGS, NULL},
25807 { (
char *)
"new_Prefix4", _wrap_new_Prefix4, METH_VARARGS, NULL},
25808 { (
char *)
"Prefix4_parse", _wrap_Prefix4_parse, METH_VARARGS, NULL},
25809 { (
char *)
"Prefix4_write", _wrap_Prefix4_write, METH_VARARGS, NULL},
25810 { (
char *)
"Prefix4_Includes", _wrap_Prefix4_Includes, METH_VARARGS, NULL},
25811 { (
char *)
"Prefix4_includes", _wrap_Prefix4_includes, METH_VARARGS, NULL},
25812 { (
char *)
"Prefix4___eq__", _wrap_Prefix4___eq__, METH_VARARGS, NULL},
25813 { (
char *)
"Prefix4___gt__", _wrap_Prefix4___gt__, METH_VARARGS, NULL},
25814 { (
char *)
"Prefix4___lt__", _wrap_Prefix4___lt__, METH_VARARGS, NULL},
25815 { (
char *)
"Prefix4___ge__", _wrap_Prefix4___ge__, METH_VARARGS, NULL},
25816 { (
char *)
"Prefix4___le__", _wrap_Prefix4___le__, METH_VARARGS, NULL},
25817 { (
char *)
"Prefix4___ne__", _wrap_Prefix4___ne__, METH_VARARGS, NULL},
25818 { (
char *)
"Prefix4_set", _wrap_Prefix4_set, METH_VARARGS, NULL},
25819 { (
char *)
"Prefix4_setPrefix", _wrap_Prefix4_setPrefix, METH_VARARGS, NULL},
25820 { (
char *)
"Prefix4_setLength", _wrap_Prefix4_setLength, METH_VARARGS, NULL},
25821 { (
char *)
"Prefix4_getPrefix", _wrap_Prefix4_getPrefix, METH_VARARGS, NULL},
25822 { (
char *)
"Prefix4_getLength", _wrap_Prefix4_getLength, METH_VARARGS, NULL},
25823 { (
char *)
"Prefix4_getMask", _wrap_Prefix4_getMask, METH_VARARGS, NULL},
25824 { (
char *)
"delete_Prefix4", _wrap_delete_Prefix4, METH_VARARGS, NULL},
25825 { (
char *)
"Prefix4_swigregister", Prefix4_swigregister, METH_VARARGS, NULL},
25826 { (
char *)
"cidr_to_mask6", _wrap_cidr_to_mask6, METH_VARARGS, NULL},
25827 { (
char *)
"mask_ipv6", _wrap_mask_ipv6, METH_VARARGS, NULL},
25828 { (
char *)
"v6addr_is_zero", _wrap_v6addr_is_zero, METH_VARARGS, NULL},
25829 { (
char *)
"new_Prefix6", _wrap_new_Prefix6, METH_VARARGS, NULL},
25830 { (
char *)
"Prefix6_parse", _wrap_Prefix6_parse, METH_VARARGS, NULL},
25831 { (
char *)
"Prefix6_write", _wrap_Prefix6_write, METH_VARARGS, NULL},
25832 { (
char *)
"Prefix6_Includes", _wrap_Prefix6_Includes, METH_VARARGS, NULL},
25833 { (
char *)
"Prefix6_includes", _wrap_Prefix6_includes, METH_VARARGS, NULL},
25834 { (
char *)
"Prefix6___eq__", _wrap_Prefix6___eq__, METH_VARARGS, NULL},
25835 { (
char *)
"Prefix6___gt__", _wrap_Prefix6___gt__, METH_VARARGS, NULL},
25836 { (
char *)
"Prefix6___lt__", _wrap_Prefix6___lt__, METH_VARARGS, NULL},
25837 { (
char *)
"Prefix6___ge__", _wrap_Prefix6___ge__, METH_VARARGS, NULL},
25838 { (
char *)
"Prefix6___le__", _wrap_Prefix6___le__, METH_VARARGS, NULL},
25839 { (
char *)
"Prefix6___ne__", _wrap_Prefix6___ne__, METH_VARARGS, NULL},
25840 { (
char *)
"Prefix6_set", _wrap_Prefix6_set, METH_VARARGS, NULL},
25841 { (
char *)
"Prefix6_setPrefix", _wrap_Prefix6_setPrefix, METH_VARARGS, NULL},
25842 { (
char *)
"Prefix6_setLength", _wrap_Prefix6_setLength, METH_VARARGS, NULL},
25843 { (
char *)
"Prefix6_getPrefix", _wrap_Prefix6_getPrefix, METH_VARARGS, NULL},
25844 { (
char *)
"Prefix6_getLength", _wrap_Prefix6_getLength, METH_VARARGS, NULL},
25845 { (
char *)
"Prefix6_getMask", _wrap_Prefix6_getMask, METH_VARARGS, NULL},
25846 { (
char *)
"delete_Prefix6", _wrap_delete_Prefix6, METH_VARARGS, NULL},
25847 { (
char *)
"Prefix6_swigregister", Prefix6_swigregister, METH_VARARGS, NULL},
25848 { (
char *)
"BgpCapability_code_set", _wrap_BgpCapability_code_set, METH_VARARGS, NULL},
25849 { (
char *)
"BgpCapability_code_get", _wrap_BgpCapability_code_get, METH_VARARGS, NULL},
25850 { (
char *)
"delete_BgpCapability", _wrap_delete_BgpCapability, METH_VARARGS, NULL},
25851 { (
char *)
"BgpCapability_parse", _wrap_BgpCapability_parse, METH_VARARGS, NULL},
25852 { (
char *)
"BgpCapability_write", _wrap_BgpCapability_write, METH_VARARGS, NULL},
25853 { (
char *)
"BgpCapability_swigregister", BgpCapability_swigregister, METH_VARARGS, NULL},
25854 { (
char *)
"new_BgpCapability4BytesAsn", _wrap_new_BgpCapability4BytesAsn, METH_VARARGS, NULL},
25855 { (
char *)
"BgpCapability4BytesAsn_doPrint", _wrap_BgpCapability4BytesAsn_doPrint, METH_VARARGS, NULL},
25856 { (
char *)
"BgpCapability4BytesAsn_parse", _wrap_BgpCapability4BytesAsn_parse, METH_VARARGS, NULL},
25857 { (
char *)
"BgpCapability4BytesAsn_write", _wrap_BgpCapability4BytesAsn_write, METH_VARARGS, NULL},
25858 { (
char *)
"BgpCapability4BytesAsn_my_asn_set", _wrap_BgpCapability4BytesAsn_my_asn_set, METH_VARARGS, NULL},
25859 { (
char *)
"BgpCapability4BytesAsn_my_asn_get", _wrap_BgpCapability4BytesAsn_my_asn_get, METH_VARARGS, NULL},
25860 { (
char *)
"delete_BgpCapability4BytesAsn", _wrap_delete_BgpCapability4BytesAsn, METH_VARARGS, NULL},
25861 { (
char *)
"BgpCapability4BytesAsn_swigregister", BgpCapability4BytesAsn_swigregister, METH_VARARGS, NULL},
25862 { (
char *)
"new_BgpCapabilityMpBgp", _wrap_new_BgpCapabilityMpBgp, METH_VARARGS, NULL},
25863 { (
char *)
"BgpCapabilityMpBgp_doPrint", _wrap_BgpCapabilityMpBgp_doPrint, METH_VARARGS, NULL},
25864 { (
char *)
"BgpCapabilityMpBgp_parse", _wrap_BgpCapabilityMpBgp_parse, METH_VARARGS, NULL},
25865 { (
char *)
"BgpCapabilityMpBgp_write", _wrap_BgpCapabilityMpBgp_write, METH_VARARGS, NULL},
25866 { (
char *)
"BgpCapabilityMpBgp_afi_set", _wrap_BgpCapabilityMpBgp_afi_set, METH_VARARGS, NULL},
25867 { (
char *)
"BgpCapabilityMpBgp_afi_get", _wrap_BgpCapabilityMpBgp_afi_get, METH_VARARGS, NULL},
25868 { (
char *)
"BgpCapabilityMpBgp_safi_set", _wrap_BgpCapabilityMpBgp_safi_set, METH_VARARGS, NULL},
25869 { (
char *)
"BgpCapabilityMpBgp_safi_get", _wrap_BgpCapabilityMpBgp_safi_get, METH_VARARGS, NULL},
25870 { (
char *)
"delete_BgpCapabilityMpBgp", _wrap_delete_BgpCapabilityMpBgp, METH_VARARGS, NULL},
25871 { (
char *)
"BgpCapabilityMpBgp_swigregister", BgpCapabilityMpBgp_swigregister, METH_VARARGS, NULL},
25872 { (
char *)
"new_BgpCapabilityUnknow", _wrap_new_BgpCapabilityUnknow, METH_VARARGS, NULL},
25873 { (
char *)
"delete_BgpCapabilityUnknow", _wrap_delete_BgpCapabilityUnknow, METH_VARARGS, NULL},
25874 { (
char *)
"BgpCapabilityUnknow_doPrint", _wrap_BgpCapabilityUnknow_doPrint, METH_VARARGS, NULL},
25875 { (
char *)
"BgpCapabilityUnknow_parse", _wrap_BgpCapabilityUnknow_parse, METH_VARARGS, NULL},
25876 { (
char *)
"BgpCapabilityUnknow_write", _wrap_BgpCapabilityUnknow_write, METH_VARARGS, NULL},
25877 { (
char *)
"BgpCapabilityUnknow_swigregister", BgpCapabilityUnknow_swigregister, METH_VARARGS, NULL},
25878 { (
char *)
"BgpFilterRule_filter_type_set", _wrap_BgpFilterRule_filter_type_set, METH_VARARGS, NULL},
25879 { (
char *)
"BgpFilterRule_filter_type_get", _wrap_BgpFilterRule_filter_type_get, METH_VARARGS, NULL},
25880 { (
char *)
"BgpFilterRule_match_type_set", _wrap_BgpFilterRule_match_type_set, METH_VARARGS, NULL},
25881 { (
char *)
"BgpFilterRule_match_type_get", _wrap_BgpFilterRule_match_type_get, METH_VARARGS, NULL},
25882 { (
char *)
"BgpFilterRule_op_set", _wrap_BgpFilterRule_op_set, METH_VARARGS, NULL},
25883 { (
char *)
"BgpFilterRule_op_get", _wrap_BgpFilterRule_op_get, METH_VARARGS, NULL},
25884 { (
char *)
"BgpFilterRule_apply", _wrap_BgpFilterRule_apply, METH_VARARGS, NULL},
25885 { (
char *)
"delete_BgpFilterRule", _wrap_delete_BgpFilterRule, METH_VARARGS, NULL},
25886 { (
char *)
"BgpFilterRule_swigregister", BgpFilterRule_swigregister, METH_VARARGS, NULL},
25887 { (
char *)
"new_Prefix4RouteFilterRule", _wrap_new_Prefix4RouteFilterRule, METH_VARARGS, NULL},
25888 { (
char *)
"Prefix4RouteFilterRule_prefix_set", _wrap_Prefix4RouteFilterRule_prefix_set, METH_VARARGS, NULL},
25889 { (
char *)
"Prefix4RouteFilterRule_prefix_get", _wrap_Prefix4RouteFilterRule_prefix_get, METH_VARARGS, NULL},
25890 { (
char *)
"Prefix4RouteFilterRule_apply", _wrap_Prefix4RouteFilterRule_apply, METH_VARARGS, NULL},
25891 { (
char *)
"delete_Prefix4RouteFilterRule", _wrap_delete_Prefix4RouteFilterRule, METH_VARARGS, NULL},
25892 { (
char *)
"Prefix4RouteFilterRule_swigregister", Prefix4RouteFilterRule_swigregister, METH_VARARGS, NULL},
25893 { (
char *)
"new_Prefix6RouteFilterRule", _wrap_new_Prefix6RouteFilterRule, METH_VARARGS, NULL},
25894 { (
char *)
"Prefix6RouteFilterRule_prefix_set", _wrap_Prefix6RouteFilterRule_prefix_set, METH_VARARGS, NULL},
25895 { (
char *)
"Prefix6RouteFilterRule_prefix_get", _wrap_Prefix6RouteFilterRule_prefix_get, METH_VARARGS, NULL},
25896 { (
char *)
"Prefix6RouteFilterRule_apply", _wrap_Prefix6RouteFilterRule_apply, METH_VARARGS, NULL},
25897 { (
char *)
"delete_Prefix6RouteFilterRule", _wrap_delete_Prefix6RouteFilterRule, METH_VARARGS, NULL},
25898 { (
char *)
"Prefix6RouteFilterRule_swigregister", Prefix6RouteFilterRule_swigregister, METH_VARARGS, NULL},
25899 { (
char *)
"new_BgpFilterRuleRoute4", _wrap_new_BgpFilterRuleRoute4, METH_VARARGS, NULL},
25900 { (
char *)
"delete_BgpFilterRuleRoute4", _wrap_delete_BgpFilterRuleRoute4, METH_VARARGS, NULL},
25901 { (
char *)
"BgpFilterRuleRoute4_swigregister", BgpFilterRuleRoute4_swigregister, METH_VARARGS, NULL},
25902 { (
char *)
"new_BgpFilterRuleRoute6", _wrap_new_BgpFilterRuleRoute6, METH_VARARGS, NULL},
25903 { (
char *)
"delete_BgpFilterRuleRoute6", _wrap_delete_BgpFilterRuleRoute6, METH_VARARGS, NULL},
25904 { (
char *)
"BgpFilterRuleRoute6_swigregister", BgpFilterRuleRoute6_swigregister, METH_VARARGS, NULL},
25905 { (
char *)
"new_BgpFilterRuleAsPath", _wrap_new_BgpFilterRuleAsPath, METH_VARARGS, NULL},
25906 { (
char *)
"BgpFilterRuleAsPath_asn_set", _wrap_BgpFilterRuleAsPath_asn_set, METH_VARARGS, NULL},
25907 { (
char *)
"BgpFilterRuleAsPath_asn_get", _wrap_BgpFilterRuleAsPath_asn_get, METH_VARARGS, NULL},
25908 { (
char *)
"BgpFilterRuleAsPath_apply", _wrap_BgpFilterRuleAsPath_apply, METH_VARARGS, NULL},
25909 { (
char *)
"delete_BgpFilterRuleAsPath", _wrap_delete_BgpFilterRuleAsPath, METH_VARARGS, NULL},
25910 { (
char *)
"BgpFilterRuleAsPath_swigregister", BgpFilterRuleAsPath_swigregister, METH_VARARGS, NULL},
25911 { (
char *)
"new_BgpFilterRuleCommunity", _wrap_new_BgpFilterRuleCommunity, METH_VARARGS, NULL},
25912 { (
char *)
"BgpFilterRuleCommunity_community_set", _wrap_BgpFilterRuleCommunity_community_set, METH_VARARGS, NULL},
25913 { (
char *)
"BgpFilterRuleCommunity_community_get", _wrap_BgpFilterRuleCommunity_community_get, METH_VARARGS, NULL},
25914 { (
char *)
"BgpFilterRuleCommunity_apply", _wrap_BgpFilterRuleCommunity_apply, METH_VARARGS, NULL},
25915 { (
char *)
"delete_BgpFilterRuleCommunity", _wrap_delete_BgpFilterRuleCommunity, METH_VARARGS, NULL},
25916 { (
char *)
"BgpFilterRuleCommunity_swigregister", BgpFilterRuleCommunity_swigregister, METH_VARARGS, NULL},
25917 { (
char *)
"new_BgpFilterRules", _wrap_new_BgpFilterRules, METH_VARARGS, NULL},
25918 { (
char *)
"BgpFilterRules_appendAsPathRule", _wrap_BgpFilterRules_appendAsPathRule, METH_VARARGS, NULL},
25919 { (
char *)
"BgpFilterRules_appendCommunityRule", _wrap_BgpFilterRules_appendCommunityRule, METH_VARARGS, NULL},
25920 { (
char *)
"BgpFilterRules_appendRoute4Rule", _wrap_BgpFilterRules_appendRoute4Rule, METH_VARARGS, NULL},
25921 { (
char *)
"BgpFilterRules_appendRoute6Rule", _wrap_BgpFilterRules_appendRoute6Rule, METH_VARARGS, NULL},
25922 { (
char *)
"BgpFilterRules_apply", _wrap_BgpFilterRules_apply, METH_VARARGS, NULL},
25923 { (
char *)
"delete_BgpFilterRules", _wrap_delete_BgpFilterRules, METH_VARARGS, NULL},
25924 { (
char *)
"BgpFilterRules_swigregister", BgpFilterRules_swigregister, METH_VARARGS, NULL},
25925 { (
char *)
"new_BgpConfig", _wrap_new_BgpConfig, METH_VARARGS, NULL},
25926 { (
char *)
"BgpConfig_in_filters4_set", _wrap_BgpConfig_in_filters4_set, METH_VARARGS, NULL},
25927 { (
char *)
"BgpConfig_in_filters4_get", _wrap_BgpConfig_in_filters4_get, METH_VARARGS, NULL},
25928 { (
char *)
"BgpConfig_out_filters4_set", _wrap_BgpConfig_out_filters4_set, METH_VARARGS, NULL},
25929 { (
char *)
"BgpConfig_out_filters4_get", _wrap_BgpConfig_out_filters4_get, METH_VARARGS, NULL},
25930 { (
char *)
"BgpConfig_in_filters6_set", _wrap_BgpConfig_in_filters6_set, METH_VARARGS, NULL},
25931 { (
char *)
"BgpConfig_in_filters6_get", _wrap_BgpConfig_in_filters6_get, METH_VARARGS, NULL},
25932 { (
char *)
"BgpConfig_out_filters6_set", _wrap_BgpConfig_out_filters6_set, METH_VARARGS, NULL},
25933 { (
char *)
"BgpConfig_out_filters6_get", _wrap_BgpConfig_out_filters6_get, METH_VARARGS, NULL},
25934 { (
char *)
"BgpConfig_out_handler_set", _wrap_BgpConfig_out_handler_set, METH_VARARGS, NULL},
25935 { (
char *)
"BgpConfig_out_handler_get", _wrap_BgpConfig_out_handler_get, METH_VARARGS, NULL},
25936 { (
char *)
"BgpConfig_log_handler_set", _wrap_BgpConfig_log_handler_set, METH_VARARGS, NULL},
25937 { (
char *)
"BgpConfig_log_handler_get", _wrap_BgpConfig_log_handler_get, METH_VARARGS, NULL},
25938 { (
char *)
"BgpConfig_rib4_set", _wrap_BgpConfig_rib4_set, METH_VARARGS, NULL},
25939 { (
char *)
"BgpConfig_rib4_get", _wrap_BgpConfig_rib4_get, METH_VARARGS, NULL},
25940 { (
char *)
"BgpConfig_rib6_set", _wrap_BgpConfig_rib6_set, METH_VARARGS, NULL},
25941 { (
char *)
"BgpConfig_rib6_get", _wrap_BgpConfig_rib6_get, METH_VARARGS, NULL},
25942 { (
char *)
"BgpConfig_rev_bus_set", _wrap_BgpConfig_rev_bus_set, METH_VARARGS, NULL},
25943 { (
char *)
"BgpConfig_rev_bus_get", _wrap_BgpConfig_rev_bus_get, METH_VARARGS, NULL},
25944 { (
char *)
"BgpConfig_no_collision_detection_set", _wrap_BgpConfig_no_collision_detection_set, METH_VARARGS, NULL},
25945 { (
char *)
"BgpConfig_no_collision_detection_get", _wrap_BgpConfig_no_collision_detection_get, METH_VARARGS, NULL},
25946 { (
char *)
"BgpConfig_use_4b_asn_set", _wrap_BgpConfig_use_4b_asn_set, METH_VARARGS, NULL},
25947 { (
char *)
"BgpConfig_use_4b_asn_get", _wrap_BgpConfig_use_4b_asn_get, METH_VARARGS, NULL},
25948 { (
char *)
"BgpConfig_mp_bgp_ipv4_set", _wrap_BgpConfig_mp_bgp_ipv4_set, METH_VARARGS, NULL},
25949 { (
char *)
"BgpConfig_mp_bgp_ipv4_get", _wrap_BgpConfig_mp_bgp_ipv4_get, METH_VARARGS, NULL},
25950 { (
char *)
"BgpConfig_mp_bgp_ipv6_set", _wrap_BgpConfig_mp_bgp_ipv6_set, METH_VARARGS, NULL},
25951 { (
char *)
"BgpConfig_mp_bgp_ipv6_get", _wrap_BgpConfig_mp_bgp_ipv6_get, METH_VARARGS, NULL},
25952 { (
char *)
"BgpConfig_asn_set", _wrap_BgpConfig_asn_set, METH_VARARGS, NULL},
25953 { (
char *)
"BgpConfig_asn_get", _wrap_BgpConfig_asn_get, METH_VARARGS, NULL},
25954 { (
char *)
"BgpConfig_peer_asn_set", _wrap_BgpConfig_peer_asn_set, METH_VARARGS, NULL},
25955 { (
char *)
"BgpConfig_peer_asn_get", _wrap_BgpConfig_peer_asn_get, METH_VARARGS, NULL},
25956 { (
char *)
"BgpConfig_router_id_set", _wrap_BgpConfig_router_id_set, METH_VARARGS, NULL},
25957 { (
char *)
"BgpConfig_router_id_get", _wrap_BgpConfig_router_id_get, METH_VARARGS, NULL},
25958 { (
char *)
"BgpConfig_peering_lan4_set", _wrap_BgpConfig_peering_lan4_set, METH_VARARGS, NULL},
25959 { (
char *)
"BgpConfig_peering_lan4_get", _wrap_BgpConfig_peering_lan4_get, METH_VARARGS, NULL},
25960 { (
char *)
"BgpConfig_peering_lan6_set", _wrap_BgpConfig_peering_lan6_set, METH_VARARGS, NULL},
25961 { (
char *)
"BgpConfig_peering_lan6_get", _wrap_BgpConfig_peering_lan6_get, METH_VARARGS, NULL},
25962 { (
char *)
"BgpConfig_no_nexthop_check4_set", _wrap_BgpConfig_no_nexthop_check4_set, METH_VARARGS, NULL},
25963 { (
char *)
"BgpConfig_no_nexthop_check4_get", _wrap_BgpConfig_no_nexthop_check4_get, METH_VARARGS, NULL},
25964 { (
char *)
"BgpConfig_default_nexthop4_set", _wrap_BgpConfig_default_nexthop4_set, METH_VARARGS, NULL},
25965 { (
char *)
"BgpConfig_default_nexthop4_get", _wrap_BgpConfig_default_nexthop4_get, METH_VARARGS, NULL},
25966 { (
char *)
"BgpConfig_forced_default_nexthop4_set", _wrap_BgpConfig_forced_default_nexthop4_set, METH_VARARGS, NULL},
25967 { (
char *)
"BgpConfig_forced_default_nexthop4_get", _wrap_BgpConfig_forced_default_nexthop4_get, METH_VARARGS, NULL},
25968 { (
char *)
"BgpConfig_no_nexthop_check6_set", _wrap_BgpConfig_no_nexthop_check6_set, METH_VARARGS, NULL},
25969 { (
char *)
"BgpConfig_no_nexthop_check6_get", _wrap_BgpConfig_no_nexthop_check6_get, METH_VARARGS, NULL},
25970 { (
char *)
"BgpConfig_default_nexthop6_global_set", _wrap_BgpConfig_default_nexthop6_global_set, METH_VARARGS, NULL},
25971 { (
char *)
"BgpConfig_default_nexthop6_global_get", _wrap_BgpConfig_default_nexthop6_global_get, METH_VARARGS, NULL},
25972 { (
char *)
"BgpConfig_default_nexthop6_linklocal_set", _wrap_BgpConfig_default_nexthop6_linklocal_set, METH_VARARGS, NULL},
25973 { (
char *)
"BgpConfig_default_nexthop6_linklocal_get", _wrap_BgpConfig_default_nexthop6_linklocal_get, METH_VARARGS, NULL},
25974 { (
char *)
"BgpConfig_forced_default_nexthop6_set", _wrap_BgpConfig_forced_default_nexthop6_set, METH_VARARGS, NULL},
25975 { (
char *)
"BgpConfig_forced_default_nexthop6_get", _wrap_BgpConfig_forced_default_nexthop6_get, METH_VARARGS, NULL},
25976 { (
char *)
"BgpConfig_hold_timer_set", _wrap_BgpConfig_hold_timer_set, METH_VARARGS, NULL},
25977 { (
char *)
"BgpConfig_hold_timer_get", _wrap_BgpConfig_hold_timer_get, METH_VARARGS, NULL},
25978 { (
char *)
"BgpConfig_clock_set", _wrap_BgpConfig_clock_set, METH_VARARGS, NULL},
25979 { (
char *)
"BgpConfig_clock_get", _wrap_BgpConfig_clock_get, METH_VARARGS, NULL},
25980 { (
char *)
"BgpConfig_allow_local_as_set", _wrap_BgpConfig_allow_local_as_set, METH_VARARGS, NULL},
25981 { (
char *)
"BgpConfig_allow_local_as_get", _wrap_BgpConfig_allow_local_as_get, METH_VARARGS, NULL},
25982 { (
char *)
"BgpConfig_weight_set", _wrap_BgpConfig_weight_set, METH_VARARGS, NULL},
25983 { (
char *)
"BgpConfig_weight_get", _wrap_BgpConfig_weight_get, METH_VARARGS, NULL},
25984 { (
char *)
"BgpConfig_no_autotick_set", _wrap_BgpConfig_no_autotick_set, METH_VARARGS, NULL},
25985 { (
char *)
"BgpConfig_no_autotick_get", _wrap_BgpConfig_no_autotick_get, METH_VARARGS, NULL},
25986 { (
char *)
"delete_BgpConfig", _wrap_delete_BgpConfig, METH_VARARGS, NULL},
25987 { (
char *)
"BgpConfig_swigregister", BgpConfig_swigregister, METH_VARARGS, NULL},
25988 { (
char *)
"new_BgpFsm", _wrap_new_BgpFsm, METH_VARARGS, NULL},
25989 { (
char *)
"delete_BgpFsm", _wrap_delete_BgpFsm, METH_VARARGS, NULL},
25990 { (
char *)
"BgpFsm_getAsn", _wrap_BgpFsm_getAsn, METH_VARARGS, NULL},
25991 { (
char *)
"BgpFsm_getBgpId", _wrap_BgpFsm_getBgpId, METH_VARARGS, NULL},
25992 { (
char *)
"BgpFsm_getPeerAsn", _wrap_BgpFsm_getPeerAsn, METH_VARARGS, NULL},
25993 { (
char *)
"BgpFsm_getPeerBgpId", _wrap_BgpFsm_getPeerBgpId, METH_VARARGS, NULL},
25994 { (
char *)
"BgpFsm_getHoldTimer", _wrap_BgpFsm_getHoldTimer, METH_VARARGS, NULL},
25995 { (
char *)
"BgpFsm_getRib4", _wrap_BgpFsm_getRib4, METH_VARARGS, NULL},
25996 { (
char *)
"BgpFsm_getRib6", _wrap_BgpFsm_getRib6, METH_VARARGS, NULL},
25997 { (
char *)
"BgpFsm_getState", _wrap_BgpFsm_getState, METH_VARARGS, NULL},
25998 { (
char *)
"BgpFsm_start", _wrap_BgpFsm_start, METH_VARARGS, NULL},
25999 { (
char *)
"BgpFsm_stop", _wrap_BgpFsm_stop, METH_VARARGS, NULL},
26000 { (
char *)
"BgpFsm_run", _wrap_BgpFsm_run, METH_VARARGS, NULL},
26001 { (
char *)
"BgpFsm_tick", _wrap_BgpFsm_tick, METH_VARARGS, NULL},
26002 { (
char *)
"BgpFsm_resetSoft", _wrap_BgpFsm_resetSoft, METH_VARARGS, NULL},
26003 { (
char *)
"BgpFsm_resetHard", _wrap_BgpFsm_resetHard, METH_VARARGS, NULL},
26004 { (
char *)
"BgpFsm_swigregister", BgpFsm_swigregister, METH_VARARGS, NULL},
26005 { (
char *)
"new_BgpLogHandler", _wrap_new_BgpLogHandler, METH_VARARGS, NULL},
26006 { (
char *)
"BgpLogHandler_log", _wrap_BgpLogHandler_log, METH_VARARGS, NULL},
26007 { (
char *)
"BgpLogHandler_setLogLevel", _wrap_BgpLogHandler_setLogLevel, METH_VARARGS, NULL},
26008 { (
char *)
"BgpLogHandler_getLogLevel", _wrap_BgpLogHandler_getLogLevel, METH_VARARGS, NULL},
26009 { (
char *)
"delete_BgpLogHandler", _wrap_delete_BgpLogHandler, METH_VARARGS, NULL},
26010 { (
char *)
"BgpLogHandler_swigregister", BgpLogHandler_swigregister, METH_VARARGS, NULL},
26011 { (
char *)
"BgpMessage_parse", _wrap_BgpMessage_parse, METH_VARARGS, NULL},
26012 { (
char *)
"BgpMessage_write", _wrap_BgpMessage_write, METH_VARARGS, NULL},
26013 { (
char *)
"BgpMessage_type_set", _wrap_BgpMessage_type_set, METH_VARARGS, NULL},
26014 { (
char *)
"BgpMessage_type_get", _wrap_BgpMessage_type_get, METH_VARARGS, NULL},
26015 { (
char *)
"delete_BgpMessage", _wrap_delete_BgpMessage, METH_VARARGS, NULL},
26016 { (
char *)
"BgpMessage_swigregister", BgpMessage_swigregister, METH_VARARGS, NULL},
26017 { (
char *)
"new_BgpBadMessage", _wrap_new_BgpBadMessage, METH_VARARGS, NULL},
26018 { (
char *)
"BgpBadMessage_doPrint", _wrap_BgpBadMessage_doPrint, METH_VARARGS, NULL},
26019 { (
char *)
"BgpBadMessage_parse", _wrap_BgpBadMessage_parse, METH_VARARGS, NULL},
26020 { (
char *)
"BgpBadMessage_write", _wrap_BgpBadMessage_write, METH_VARARGS, NULL},
26021 { (
char *)
"delete_BgpBadMessage", _wrap_delete_BgpBadMessage, METH_VARARGS, NULL},
26022 { (
char *)
"BgpBadMessage_swigregister", BgpBadMessage_swigregister, METH_VARARGS, NULL},
26023 { (
char *)
"new_BgpKeepaliveMessage", _wrap_new_BgpKeepaliveMessage, METH_VARARGS, NULL},
26024 { (
char *)
"BgpKeepaliveMessage_doPrint", _wrap_BgpKeepaliveMessage_doPrint, METH_VARARGS, NULL},
26025 { (
char *)
"BgpKeepaliveMessage_parse", _wrap_BgpKeepaliveMessage_parse, METH_VARARGS, NULL},
26026 { (
char *)
"BgpKeepaliveMessage_write", _wrap_BgpKeepaliveMessage_write, METH_VARARGS, NULL},
26027 { (
char *)
"delete_BgpKeepaliveMessage", _wrap_delete_BgpKeepaliveMessage, METH_VARARGS, NULL},
26028 { (
char *)
"BgpKeepaliveMessage_swigregister", BgpKeepaliveMessage_swigregister, METH_VARARGS, NULL},
26029 { (
char *)
"new_BgpNotificationMessage", _wrap_new_BgpNotificationMessage, METH_VARARGS, NULL},
26030 { (
char *)
"delete_BgpNotificationMessage", _wrap_delete_BgpNotificationMessage, METH_VARARGS, NULL},
26031 { (
char *)
"BgpNotificationMessage_errcode_set", _wrap_BgpNotificationMessage_errcode_set, METH_VARARGS, NULL},
26032 { (
char *)
"BgpNotificationMessage_errcode_get", _wrap_BgpNotificationMessage_errcode_get, METH_VARARGS, NULL},
26033 { (
char *)
"BgpNotificationMessage_subcode_set", _wrap_BgpNotificationMessage_subcode_set, METH_VARARGS, NULL},
26034 { (
char *)
"BgpNotificationMessage_subcode_get", _wrap_BgpNotificationMessage_subcode_get, METH_VARARGS, NULL},
26035 { (
char *)
"BgpNotificationMessage_data_set", _wrap_BgpNotificationMessage_data_set, METH_VARARGS, NULL},
26036 { (
char *)
"BgpNotificationMessage_data_get", _wrap_BgpNotificationMessage_data_get, METH_VARARGS, NULL},
26037 { (
char *)
"BgpNotificationMessage_data_len_set", _wrap_BgpNotificationMessage_data_len_set, METH_VARARGS, NULL},
26038 { (
char *)
"BgpNotificationMessage_data_len_get", _wrap_BgpNotificationMessage_data_len_get, METH_VARARGS, NULL},
26039 { (
char *)
"BgpNotificationMessage_doPrint", _wrap_BgpNotificationMessage_doPrint, METH_VARARGS, NULL},
26040 { (
char *)
"BgpNotificationMessage_parse", _wrap_BgpNotificationMessage_parse, METH_VARARGS, NULL},
26041 { (
char *)
"BgpNotificationMessage_write", _wrap_BgpNotificationMessage_write, METH_VARARGS, NULL},
26042 { (
char *)
"BgpNotificationMessage_swigregister", BgpNotificationMessage_swigregister, METH_VARARGS, NULL},
26043 { (
char *)
"new_BgpOpenMessage", _wrap_new_BgpOpenMessage, METH_VARARGS, NULL},
26044 { (
char *)
"delete_BgpOpenMessage", _wrap_delete_BgpOpenMessage, METH_VARARGS, NULL},
26045 { (
char *)
"BgpOpenMessage_version_set", _wrap_BgpOpenMessage_version_set, METH_VARARGS, NULL},
26046 { (
char *)
"BgpOpenMessage_version_get", _wrap_BgpOpenMessage_version_get, METH_VARARGS, NULL},
26047 { (
char *)
"BgpOpenMessage_my_asn_set", _wrap_BgpOpenMessage_my_asn_set, METH_VARARGS, NULL},
26048 { (
char *)
"BgpOpenMessage_my_asn_get", _wrap_BgpOpenMessage_my_asn_get, METH_VARARGS, NULL},
26049 { (
char *)
"BgpOpenMessage_hold_time_set", _wrap_BgpOpenMessage_hold_time_set, METH_VARARGS, NULL},
26050 { (
char *)
"BgpOpenMessage_hold_time_get", _wrap_BgpOpenMessage_hold_time_get, METH_VARARGS, NULL},
26051 { (
char *)
"BgpOpenMessage_bgp_id_set", _wrap_BgpOpenMessage_bgp_id_set, METH_VARARGS, NULL},
26052 { (
char *)
"BgpOpenMessage_bgp_id_get", _wrap_BgpOpenMessage_bgp_id_get, METH_VARARGS, NULL},
26053 { (
char *)
"BgpOpenMessage_setAsn", _wrap_BgpOpenMessage_setAsn, METH_VARARGS, NULL},
26054 { (
char *)
"BgpOpenMessage_getAsn", _wrap_BgpOpenMessage_getAsn, METH_VARARGS, NULL},
26055 { (
char *)
"BgpOpenMessage_hasCapability", _wrap_BgpOpenMessage_hasCapability, METH_VARARGS, NULL},
26056 { (
char *)
"BgpOpenMessage_addCapability", _wrap_BgpOpenMessage_addCapability, METH_VARARGS, NULL},
26057 { (
char *)
"BgpOpenMessage_doPrint", _wrap_BgpOpenMessage_doPrint, METH_VARARGS, NULL},
26058 { (
char *)
"BgpOpenMessage_parse", _wrap_BgpOpenMessage_parse, METH_VARARGS, NULL},
26059 { (
char *)
"BgpOpenMessage_write", _wrap_BgpOpenMessage_write, METH_VARARGS, NULL},
26060 { (
char *)
"BgpOpenMessage_getCapabilities", _wrap_BgpOpenMessage_getCapabilities, METH_VARARGS, NULL},
26061 { (
char *)
"BgpOpenMessage_swigregister", BgpOpenMessage_swigregister, METH_VARARGS, NULL},
26062 { (
char *)
"BgpOutHandler_handleOut", _wrap_BgpOutHandler_handleOut, METH_VARARGS, NULL},
26063 { (
char *)
"BgpOutHandler_notifyStateChange", _wrap_BgpOutHandler_notifyStateChange, METH_VARARGS, NULL},
26064 { (
char *)
"delete_BgpOutHandler", _wrap_delete_BgpOutHandler, METH_VARARGS, NULL},
26065 { (
char *)
"BgpOutHandler_swigregister", BgpOutHandler_swigregister, METH_VARARGS, NULL},
26066 { (
char *)
"new_FdOutHandler", _wrap_new_FdOutHandler, METH_VARARGS, NULL},
26067 { (
char *)
"FdOutHandler_handleOut", _wrap_FdOutHandler_handleOut, METH_VARARGS, NULL},
26068 { (
char *)
"delete_FdOutHandler", _wrap_delete_FdOutHandler, METH_VARARGS, NULL},
26069 { (
char *)
"FdOutHandler_swigregister", FdOutHandler_swigregister, METH_VARARGS, NULL},
26070 { (
char *)
"new_BgpPacket", _wrap_new_BgpPacket, METH_VARARGS, NULL},
26071 { (
char *)
"delete_BgpPacket", _wrap_delete_BgpPacket, METH_VARARGS, NULL},
26072 { (
char *)
"BgpPacket_doPrint", _wrap_BgpPacket_doPrint, METH_VARARGS, NULL},
26073 { (
char *)
"BgpPacket_parse", _wrap_BgpPacket_parse, METH_VARARGS, NULL},
26074 { (
char *)
"BgpPacket_write", _wrap_BgpPacket_write, METH_VARARGS, NULL},
26075 { (
char *)
"BgpPacket_getMessage", _wrap_BgpPacket_getMessage, METH_VARARGS, NULL},
26076 { (
char *)
"BgpPacket_swigregister", BgpPacket_swigregister, METH_VARARGS, NULL},
26077 { (
char *)
"BgpPathAttrib_optional_set", _wrap_BgpPathAttrib_optional_set, METH_VARARGS, NULL},
26078 { (
char *)
"BgpPathAttrib_optional_get", _wrap_BgpPathAttrib_optional_get, METH_VARARGS, NULL},
26079 { (
char *)
"BgpPathAttrib_transitive_set", _wrap_BgpPathAttrib_transitive_set, METH_VARARGS, NULL},
26080 { (
char *)
"BgpPathAttrib_transitive_get", _wrap_BgpPathAttrib_transitive_get, METH_VARARGS, NULL},
26081 { (
char *)
"BgpPathAttrib_partial_set", _wrap_BgpPathAttrib_partial_set, METH_VARARGS, NULL},
26082 { (
char *)
"BgpPathAttrib_partial_get", _wrap_BgpPathAttrib_partial_get, METH_VARARGS, NULL},
26083 { (
char *)
"BgpPathAttrib_extended_set", _wrap_BgpPathAttrib_extended_set, METH_VARARGS, NULL},
26084 { (
char *)
"BgpPathAttrib_extended_get", _wrap_BgpPathAttrib_extended_get, METH_VARARGS, NULL},
26085 { (
char *)
"BgpPathAttrib_type_code_set", _wrap_BgpPathAttrib_type_code_set, METH_VARARGS, NULL},
26086 { (
char *)
"BgpPathAttrib_type_code_get", _wrap_BgpPathAttrib_type_code_get, METH_VARARGS, NULL},
26087 { (
char *)
"new_BgpPathAttrib", _wrap_new_BgpPathAttrib, METH_VARARGS, NULL},
26088 { (
char *)
"BgpPathAttrib_GetTypeFromBuffer", _wrap_BgpPathAttrib_GetTypeFromBuffer, METH_VARARGS, NULL},
26089 { (
char *)
"BgpPathAttrib_doPrint", _wrap_BgpPathAttrib_doPrint, METH_VARARGS, NULL},
26090 { (
char *)
"BgpPathAttrib_parse", _wrap_BgpPathAttrib_parse, METH_VARARGS, NULL},
26091 { (
char *)
"BgpPathAttrib_write", _wrap_BgpPathAttrib_write, METH_VARARGS, NULL},
26092 { (
char *)
"BgpPathAttrib_length", _wrap_BgpPathAttrib_length, METH_VARARGS, NULL},
26093 { (
char *)
"BgpPathAttrib_clone", _wrap_BgpPathAttrib_clone, METH_VARARGS, NULL},
26094 { (
char *)
"delete_BgpPathAttrib", _wrap_delete_BgpPathAttrib, METH_VARARGS, NULL},
26095 { (
char *)
"BgpPathAttrib_swigregister", BgpPathAttrib_swigregister, METH_VARARGS, NULL},
26096 { (
char *)
"new_BgpPathAttribOrigin", _wrap_new_BgpPathAttribOrigin, METH_VARARGS, NULL},
26097 { (
char *)
"BgpPathAttribOrigin_origin_set", _wrap_BgpPathAttribOrigin_origin_set, METH_VARARGS, NULL},
26098 { (
char *)
"BgpPathAttribOrigin_origin_get", _wrap_BgpPathAttribOrigin_origin_get, METH_VARARGS, NULL},
26099 { (
char *)
"BgpPathAttribOrigin_clone", _wrap_BgpPathAttribOrigin_clone, METH_VARARGS, NULL},
26100 { (
char *)
"BgpPathAttribOrigin_parse", _wrap_BgpPathAttribOrigin_parse, METH_VARARGS, NULL},
26101 { (
char *)
"BgpPathAttribOrigin_write", _wrap_BgpPathAttribOrigin_write, METH_VARARGS, NULL},
26102 { (
char *)
"BgpPathAttribOrigin_doPrint", _wrap_BgpPathAttribOrigin_doPrint, METH_VARARGS, NULL},
26103 { (
char *)
"BgpPathAttribOrigin_length", _wrap_BgpPathAttribOrigin_length, METH_VARARGS, NULL},
26104 { (
char *)
"delete_BgpPathAttribOrigin", _wrap_delete_BgpPathAttribOrigin, METH_VARARGS, NULL},
26105 { (
char *)
"BgpPathAttribOrigin_swigregister", BgpPathAttribOrigin_swigregister, METH_VARARGS, NULL},
26106 { (
char *)
"new_BgpAsPathSegment", _wrap_new_BgpAsPathSegment, METH_VARARGS, NULL},
26107 { (
char *)
"BgpAsPathSegment_is_4b_set", _wrap_BgpAsPathSegment_is_4b_set, METH_VARARGS, NULL},
26108 { (
char *)
"BgpAsPathSegment_is_4b_get", _wrap_BgpAsPathSegment_is_4b_get, METH_VARARGS, NULL},
26109 { (
char *)
"BgpAsPathSegment_type_set", _wrap_BgpAsPathSegment_type_set, METH_VARARGS, NULL},
26110 { (
char *)
"BgpAsPathSegment_type_get", _wrap_BgpAsPathSegment_type_get, METH_VARARGS, NULL},
26111 { (
char *)
"BgpAsPathSegment_getCount", _wrap_BgpAsPathSegment_getCount, METH_VARARGS, NULL},
26112 { (
char *)
"BgpAsPathSegment_prepend", _wrap_BgpAsPathSegment_prepend, METH_VARARGS, NULL},
26113 { (
char *)
"BgpAsPathSegment_value_set", _wrap_BgpAsPathSegment_value_set, METH_VARARGS, NULL},
26114 { (
char *)
"BgpAsPathSegment_value_get", _wrap_BgpAsPathSegment_value_get, METH_VARARGS, NULL},
26115 { (
char *)
"delete_BgpAsPathSegment", _wrap_delete_BgpAsPathSegment, METH_VARARGS, NULL},
26116 { (
char *)
"BgpAsPathSegment_swigregister", BgpAsPathSegment_swigregister, METH_VARARGS, NULL},
26117 { (
char *)
"new_BgpPathAttribAsPath", _wrap_new_BgpPathAttribAsPath, METH_VARARGS, NULL},
26118 { (
char *)
"BgpPathAttribAsPath_clone", _wrap_BgpPathAttribAsPath_clone, METH_VARARGS, NULL},
26119 { (
char *)
"BgpPathAttribAsPath_as_paths_set", _wrap_BgpPathAttribAsPath_as_paths_set, METH_VARARGS, NULL},
26120 { (
char *)
"BgpPathAttribAsPath_as_paths_get", _wrap_BgpPathAttribAsPath_as_paths_get, METH_VARARGS, NULL},
26121 { (
char *)
"BgpPathAttribAsPath_is_4b_set", _wrap_BgpPathAttribAsPath_is_4b_set, METH_VARARGS, NULL},
26122 { (
char *)
"BgpPathAttribAsPath_is_4b_get", _wrap_BgpPathAttribAsPath_is_4b_get, METH_VARARGS, NULL},
26123 { (
char *)
"BgpPathAttribAsPath_prepend", _wrap_BgpPathAttribAsPath_prepend, METH_VARARGS, NULL},
26124 { (
char *)
"BgpPathAttribAsPath_parse", _wrap_BgpPathAttribAsPath_parse, METH_VARARGS, NULL},
26125 { (
char *)
"BgpPathAttribAsPath_write", _wrap_BgpPathAttribAsPath_write, METH_VARARGS, NULL},
26126 { (
char *)
"BgpPathAttribAsPath_doPrint", _wrap_BgpPathAttribAsPath_doPrint, METH_VARARGS, NULL},
26127 { (
char *)
"BgpPathAttribAsPath_length", _wrap_BgpPathAttribAsPath_length, METH_VARARGS, NULL},
26128 { (
char *)
"delete_BgpPathAttribAsPath", _wrap_delete_BgpPathAttribAsPath, METH_VARARGS, NULL},
26129 { (
char *)
"BgpPathAttribAsPath_swigregister", BgpPathAttribAsPath_swigregister, METH_VARARGS, NULL},
26130 { (
char *)
"new_BgpPathAttribNexthop", _wrap_new_BgpPathAttribNexthop, METH_VARARGS, NULL},
26131 { (
char *)
"BgpPathAttribNexthop_next_hop_set", _wrap_BgpPathAttribNexthop_next_hop_set, METH_VARARGS, NULL},
26132 { (
char *)
"BgpPathAttribNexthop_next_hop_get", _wrap_BgpPathAttribNexthop_next_hop_get, METH_VARARGS, NULL},
26133 { (
char *)
"BgpPathAttribNexthop_clone", _wrap_BgpPathAttribNexthop_clone, METH_VARARGS, NULL},
26134 { (
char *)
"BgpPathAttribNexthop_parse", _wrap_BgpPathAttribNexthop_parse, METH_VARARGS, NULL},
26135 { (
char *)
"BgpPathAttribNexthop_write", _wrap_BgpPathAttribNexthop_write, METH_VARARGS, NULL},
26136 { (
char *)
"BgpPathAttribNexthop_doPrint", _wrap_BgpPathAttribNexthop_doPrint, METH_VARARGS, NULL},
26137 { (
char *)
"BgpPathAttribNexthop_length", _wrap_BgpPathAttribNexthop_length, METH_VARARGS, NULL},
26138 { (
char *)
"delete_BgpPathAttribNexthop", _wrap_delete_BgpPathAttribNexthop, METH_VARARGS, NULL},
26139 { (
char *)
"BgpPathAttribNexthop_swigregister", BgpPathAttribNexthop_swigregister, METH_VARARGS, NULL},
26140 { (
char *)
"new_BgpPathAttribMed", _wrap_new_BgpPathAttribMed, METH_VARARGS, NULL},
26141 { (
char *)
"BgpPathAttribMed_med_set", _wrap_BgpPathAttribMed_med_set, METH_VARARGS, NULL},
26142 { (
char *)
"BgpPathAttribMed_med_get", _wrap_BgpPathAttribMed_med_get, METH_VARARGS, NULL},
26143 { (
char *)
"BgpPathAttribMed_clone", _wrap_BgpPathAttribMed_clone, METH_VARARGS, NULL},
26144 { (
char *)
"BgpPathAttribMed_parse", _wrap_BgpPathAttribMed_parse, METH_VARARGS, NULL},
26145 { (
char *)
"BgpPathAttribMed_write", _wrap_BgpPathAttribMed_write, METH_VARARGS, NULL},
26146 { (
char *)
"BgpPathAttribMed_doPrint", _wrap_BgpPathAttribMed_doPrint, METH_VARARGS, NULL},
26147 { (
char *)
"BgpPathAttribMed_length", _wrap_BgpPathAttribMed_length, METH_VARARGS, NULL},
26148 { (
char *)
"delete_BgpPathAttribMed", _wrap_delete_BgpPathAttribMed, METH_VARARGS, NULL},
26149 { (
char *)
"BgpPathAttribMed_swigregister", BgpPathAttribMed_swigregister, METH_VARARGS, NULL},
26150 { (
char *)
"new_BgpPathAttribLocalPref", _wrap_new_BgpPathAttribLocalPref, METH_VARARGS, NULL},
26151 { (
char *)
"BgpPathAttribLocalPref_local_pref_set", _wrap_BgpPathAttribLocalPref_local_pref_set, METH_VARARGS, NULL},
26152 { (
char *)
"BgpPathAttribLocalPref_local_pref_get", _wrap_BgpPathAttribLocalPref_local_pref_get, METH_VARARGS, NULL},
26153 { (
char *)
"BgpPathAttribLocalPref_clone", _wrap_BgpPathAttribLocalPref_clone, METH_VARARGS, NULL},
26154 { (
char *)
"BgpPathAttribLocalPref_parse", _wrap_BgpPathAttribLocalPref_parse, METH_VARARGS, NULL},
26155 { (
char *)
"BgpPathAttribLocalPref_write", _wrap_BgpPathAttribLocalPref_write, METH_VARARGS, NULL},
26156 { (
char *)
"BgpPathAttribLocalPref_doPrint", _wrap_BgpPathAttribLocalPref_doPrint, METH_VARARGS, NULL},
26157 { (
char *)
"BgpPathAttribLocalPref_length", _wrap_BgpPathAttribLocalPref_length, METH_VARARGS, NULL},
26158 { (
char *)
"delete_BgpPathAttribLocalPref", _wrap_delete_BgpPathAttribLocalPref, METH_VARARGS, NULL},
26159 { (
char *)
"BgpPathAttribLocalPref_swigregister", BgpPathAttribLocalPref_swigregister, METH_VARARGS, NULL},
26160 { (
char *)
"new_BgpPathAttribAtomicAggregate", _wrap_new_BgpPathAttribAtomicAggregate, METH_VARARGS, NULL},
26161 { (
char *)
"BgpPathAttribAtomicAggregate_clone", _wrap_BgpPathAttribAtomicAggregate_clone, METH_VARARGS, NULL},
26162 { (
char *)
"BgpPathAttribAtomicAggregate_parse", _wrap_BgpPathAttribAtomicAggregate_parse, METH_VARARGS, NULL},
26163 { (
char *)
"BgpPathAttribAtomicAggregate_write", _wrap_BgpPathAttribAtomicAggregate_write, METH_VARARGS, NULL},
26164 { (
char *)
"BgpPathAttribAtomicAggregate_doPrint", _wrap_BgpPathAttribAtomicAggregate_doPrint, METH_VARARGS, NULL},
26165 { (
char *)
"BgpPathAttribAtomicAggregate_length", _wrap_BgpPathAttribAtomicAggregate_length, METH_VARARGS, NULL},
26166 { (
char *)
"delete_BgpPathAttribAtomicAggregate", _wrap_delete_BgpPathAttribAtomicAggregate, METH_VARARGS, NULL},
26167 { (
char *)
"BgpPathAttribAtomicAggregate_swigregister", BgpPathAttribAtomicAggregate_swigregister, METH_VARARGS, NULL},
26168 { (
char *)
"new_BgpPathAttribAggregator", _wrap_new_BgpPathAttribAggregator, METH_VARARGS, NULL},
26169 { (
char *)
"BgpPathAttribAggregator_aggregator_set", _wrap_BgpPathAttribAggregator_aggregator_set, METH_VARARGS, NULL},
26170 { (
char *)
"BgpPathAttribAggregator_aggregator_get", _wrap_BgpPathAttribAggregator_aggregator_get, METH_VARARGS, NULL},
26171 { (
char *)
"BgpPathAttribAggregator_aggregator_asn_set", _wrap_BgpPathAttribAggregator_aggregator_asn_set, METH_VARARGS, NULL},
26172 { (
char *)
"BgpPathAttribAggregator_aggregator_asn_get", _wrap_BgpPathAttribAggregator_aggregator_asn_get, METH_VARARGS, NULL},
26173 { (
char *)
"BgpPathAttribAggregator_is_4b_set", _wrap_BgpPathAttribAggregator_is_4b_set, METH_VARARGS, NULL},
26174 { (
char *)
"BgpPathAttribAggregator_is_4b_get", _wrap_BgpPathAttribAggregator_is_4b_get, METH_VARARGS, NULL},
26175 { (
char *)
"BgpPathAttribAggregator_clone", _wrap_BgpPathAttribAggregator_clone, METH_VARARGS, NULL},
26176 { (
char *)
"BgpPathAttribAggregator_parse", _wrap_BgpPathAttribAggregator_parse, METH_VARARGS, NULL},
26177 { (
char *)
"BgpPathAttribAggregator_write", _wrap_BgpPathAttribAggregator_write, METH_VARARGS, NULL},
26178 { (
char *)
"BgpPathAttribAggregator_doPrint", _wrap_BgpPathAttribAggregator_doPrint, METH_VARARGS, NULL},
26179 { (
char *)
"BgpPathAttribAggregator_length", _wrap_BgpPathAttribAggregator_length, METH_VARARGS, NULL},
26180 { (
char *)
"delete_BgpPathAttribAggregator", _wrap_delete_BgpPathAttribAggregator, METH_VARARGS, NULL},
26181 { (
char *)
"BgpPathAttribAggregator_swigregister", BgpPathAttribAggregator_swigregister, METH_VARARGS, NULL},
26182 { (
char *)
"new_BgpPathAttribAs4Path", _wrap_new_BgpPathAttribAs4Path, METH_VARARGS, NULL},
26183 { (
char *)
"BgpPathAttribAs4Path_as4_paths_set", _wrap_BgpPathAttribAs4Path_as4_paths_set, METH_VARARGS, NULL},
26184 { (
char *)
"BgpPathAttribAs4Path_as4_paths_get", _wrap_BgpPathAttribAs4Path_as4_paths_get, METH_VARARGS, NULL},
26185 { (
char *)
"BgpPathAttribAs4Path_prepend", _wrap_BgpPathAttribAs4Path_prepend, METH_VARARGS, NULL},
26186 { (
char *)
"BgpPathAttribAs4Path_clone", _wrap_BgpPathAttribAs4Path_clone, METH_VARARGS, NULL},
26187 { (
char *)
"BgpPathAttribAs4Path_parse", _wrap_BgpPathAttribAs4Path_parse, METH_VARARGS, NULL},
26188 { (
char *)
"BgpPathAttribAs4Path_write", _wrap_BgpPathAttribAs4Path_write, METH_VARARGS, NULL},
26189 { (
char *)
"BgpPathAttribAs4Path_doPrint", _wrap_BgpPathAttribAs4Path_doPrint, METH_VARARGS, NULL},
26190 { (
char *)
"BgpPathAttribAs4Path_length", _wrap_BgpPathAttribAs4Path_length, METH_VARARGS, NULL},
26191 { (
char *)
"delete_BgpPathAttribAs4Path", _wrap_delete_BgpPathAttribAs4Path, METH_VARARGS, NULL},
26192 { (
char *)
"BgpPathAttribAs4Path_swigregister", BgpPathAttribAs4Path_swigregister, METH_VARARGS, NULL},
26193 { (
char *)
"new_BgpPathAttribAs4Aggregator", _wrap_new_BgpPathAttribAs4Aggregator, METH_VARARGS, NULL},
26194 { (
char *)
"BgpPathAttribAs4Aggregator_aggregator_set", _wrap_BgpPathAttribAs4Aggregator_aggregator_set, METH_VARARGS, NULL},
26195 { (
char *)
"BgpPathAttribAs4Aggregator_aggregator_get", _wrap_BgpPathAttribAs4Aggregator_aggregator_get, METH_VARARGS, NULL},
26196 { (
char *)
"BgpPathAttribAs4Aggregator_aggregator_asn4_set", _wrap_BgpPathAttribAs4Aggregator_aggregator_asn4_set, METH_VARARGS, NULL},
26197 { (
char *)
"BgpPathAttribAs4Aggregator_aggregator_asn4_get", _wrap_BgpPathAttribAs4Aggregator_aggregator_asn4_get, METH_VARARGS, NULL},
26198 { (
char *)
"BgpPathAttribAs4Aggregator_clone", _wrap_BgpPathAttribAs4Aggregator_clone, METH_VARARGS, NULL},
26199 { (
char *)
"BgpPathAttribAs4Aggregator_parse", _wrap_BgpPathAttribAs4Aggregator_parse, METH_VARARGS, NULL},
26200 { (
char *)
"BgpPathAttribAs4Aggregator_write", _wrap_BgpPathAttribAs4Aggregator_write, METH_VARARGS, NULL},
26201 { (
char *)
"BgpPathAttribAs4Aggregator_doPrint", _wrap_BgpPathAttribAs4Aggregator_doPrint, METH_VARARGS, NULL},
26202 { (
char *)
"BgpPathAttribAs4Aggregator_length", _wrap_BgpPathAttribAs4Aggregator_length, METH_VARARGS, NULL},
26203 { (
char *)
"delete_BgpPathAttribAs4Aggregator", _wrap_delete_BgpPathAttribAs4Aggregator, METH_VARARGS, NULL},
26204 { (
char *)
"BgpPathAttribAs4Aggregator_swigregister", BgpPathAttribAs4Aggregator_swigregister, METH_VARARGS, NULL},
26205 { (
char *)
"new_BgpPathAttribCommunity", _wrap_new_BgpPathAttribCommunity, METH_VARARGS, NULL},
26206 { (
char *)
"BgpPathAttribCommunity_communites_set", _wrap_BgpPathAttribCommunity_communites_set, METH_VARARGS, NULL},
26207 { (
char *)
"BgpPathAttribCommunity_communites_get", _wrap_BgpPathAttribCommunity_communites_get, METH_VARARGS, NULL},
26208 { (
char *)
"BgpPathAttribCommunity_clone", _wrap_BgpPathAttribCommunity_clone, METH_VARARGS, NULL},
26209 { (
char *)
"BgpPathAttribCommunity_parse", _wrap_BgpPathAttribCommunity_parse, METH_VARARGS, NULL},
26210 { (
char *)
"BgpPathAttribCommunity_write", _wrap_BgpPathAttribCommunity_write, METH_VARARGS, NULL},
26211 { (
char *)
"BgpPathAttribCommunity_doPrint", _wrap_BgpPathAttribCommunity_doPrint, METH_VARARGS, NULL},
26212 { (
char *)
"BgpPathAttribCommunity_length", _wrap_BgpPathAttribCommunity_length, METH_VARARGS, NULL},
26213 { (
char *)
"delete_BgpPathAttribCommunity", _wrap_delete_BgpPathAttribCommunity, METH_VARARGS, NULL},
26214 { (
char *)
"BgpPathAttribCommunity_swigregister", BgpPathAttribCommunity_swigregister, METH_VARARGS, NULL},
26215 { (
char *)
"new_BgpPathAttribMpNlriBase", _wrap_new_BgpPathAttribMpNlriBase, METH_VARARGS, NULL},
26216 { (
char *)
"BgpPathAttribMpNlriBase_GetAfiFromBuffer", _wrap_BgpPathAttribMpNlriBase_GetAfiFromBuffer, METH_VARARGS, NULL},
26217 { (
char *)
"BgpPathAttribMpNlriBase_afi_set", _wrap_BgpPathAttribMpNlriBase_afi_set, METH_VARARGS, NULL},
26218 { (
char *)
"BgpPathAttribMpNlriBase_afi_get", _wrap_BgpPathAttribMpNlriBase_afi_get, METH_VARARGS, NULL},
26219 { (
char *)
"BgpPathAttribMpNlriBase_safi_set", _wrap_BgpPathAttribMpNlriBase_safi_set, METH_VARARGS, NULL},
26220 { (
char *)
"BgpPathAttribMpNlriBase_safi_get", _wrap_BgpPathAttribMpNlriBase_safi_get, METH_VARARGS, NULL},
26221 { (
char *)
"delete_BgpPathAttribMpNlriBase", _wrap_delete_BgpPathAttribMpNlriBase, METH_VARARGS, NULL},
26222 { (
char *)
"BgpPathAttribMpNlriBase_swigregister", BgpPathAttribMpNlriBase_swigregister, METH_VARARGS, NULL},
26223 { (
char *)
"new_BgpPathAttribMpReachNlriIpv6", _wrap_new_BgpPathAttribMpReachNlriIpv6, METH_VARARGS, NULL},
26224 { (
char *)
"BgpPathAttribMpReachNlriIpv6_nexthop_global_set", _wrap_BgpPathAttribMpReachNlriIpv6_nexthop_global_set, METH_VARARGS, NULL},
26225 { (
char *)
"BgpPathAttribMpReachNlriIpv6_nexthop_global_get", _wrap_BgpPathAttribMpReachNlriIpv6_nexthop_global_get, METH_VARARGS, NULL},
26226 { (
char *)
"BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_set", _wrap_BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_set, METH_VARARGS, NULL},
26227 { (
char *)
"BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_get", _wrap_BgpPathAttribMpReachNlriIpv6_nexthop_linklocal_get, METH_VARARGS, NULL},
26228 { (
char *)
"BgpPathAttribMpReachNlriIpv6_nlri_set", _wrap_BgpPathAttribMpReachNlriIpv6_nlri_set, METH_VARARGS, NULL},
26229 { (
char *)
"BgpPathAttribMpReachNlriIpv6_nlri_get", _wrap_BgpPathAttribMpReachNlriIpv6_nlri_get, METH_VARARGS, NULL},
26230 { (
char *)
"BgpPathAttribMpReachNlriIpv6_clone", _wrap_BgpPathAttribMpReachNlriIpv6_clone, METH_VARARGS, NULL},
26231 { (
char *)
"BgpPathAttribMpReachNlriIpv6_parse", _wrap_BgpPathAttribMpReachNlriIpv6_parse, METH_VARARGS, NULL},
26232 { (
char *)
"BgpPathAttribMpReachNlriIpv6_write", _wrap_BgpPathAttribMpReachNlriIpv6_write, METH_VARARGS, NULL},
26233 { (
char *)
"BgpPathAttribMpReachNlriIpv6_doPrint", _wrap_BgpPathAttribMpReachNlriIpv6_doPrint, METH_VARARGS, NULL},
26234 { (
char *)
"BgpPathAttribMpReachNlriIpv6_length", _wrap_BgpPathAttribMpReachNlriIpv6_length, METH_VARARGS, NULL},
26235 { (
char *)
"delete_BgpPathAttribMpReachNlriIpv6", _wrap_delete_BgpPathAttribMpReachNlriIpv6, METH_VARARGS, NULL},
26236 { (
char *)
"BgpPathAttribMpReachNlriIpv6_swigregister", BgpPathAttribMpReachNlriIpv6_swigregister, METH_VARARGS, NULL},
26237 { (
char *)
"new_BgpPathAttribMpReachNlriUnknow", _wrap_new_BgpPathAttribMpReachNlriUnknow, METH_VARARGS, NULL},
26238 { (
char *)
"delete_BgpPathAttribMpReachNlriUnknow", _wrap_delete_BgpPathAttribMpReachNlriUnknow, METH_VARARGS, NULL},
26239 { (
char *)
"BgpPathAttribMpReachNlriUnknow_clone", _wrap_BgpPathAttribMpReachNlriUnknow_clone, METH_VARARGS, NULL},
26240 { (
char *)
"BgpPathAttribMpReachNlriUnknow_parse", _wrap_BgpPathAttribMpReachNlriUnknow_parse, METH_VARARGS, NULL},
26241 { (
char *)
"BgpPathAttribMpReachNlriUnknow_write", _wrap_BgpPathAttribMpReachNlriUnknow_write, METH_VARARGS, NULL},
26242 { (
char *)
"BgpPathAttribMpReachNlriUnknow_doPrint", _wrap_BgpPathAttribMpReachNlriUnknow_doPrint, METH_VARARGS, NULL},
26243 { (
char *)
"BgpPathAttribMpReachNlriUnknow_length", _wrap_BgpPathAttribMpReachNlriUnknow_length, METH_VARARGS, NULL},
26244 { (
char *)
"BgpPathAttribMpReachNlriUnknow_getNexthop", _wrap_BgpPathAttribMpReachNlriUnknow_getNexthop, METH_VARARGS, NULL},
26245 { (
char *)
"BgpPathAttribMpReachNlriUnknow_getNlri", _wrap_BgpPathAttribMpReachNlriUnknow_getNlri, METH_VARARGS, NULL},
26246 { (
char *)
"BgpPathAttribMpReachNlriUnknow_getNexthopLength", _wrap_BgpPathAttribMpReachNlriUnknow_getNexthopLength, METH_VARARGS, NULL},
26247 { (
char *)
"BgpPathAttribMpReachNlriUnknow_getNlriLength", _wrap_BgpPathAttribMpReachNlriUnknow_getNlriLength, METH_VARARGS, NULL},
26248 { (
char *)
"BgpPathAttribMpReachNlriUnknow_swigregister", BgpPathAttribMpReachNlriUnknow_swigregister, METH_VARARGS, NULL},
26249 { (
char *)
"new_BgpPathAttribMpUnreachNlriIpv6", _wrap_new_BgpPathAttribMpUnreachNlriIpv6, METH_VARARGS, NULL},
26250 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_set", _wrap_BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_set, METH_VARARGS, NULL},
26251 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_get", _wrap_BgpPathAttribMpUnreachNlriIpv6_withdrawn_routes_get, METH_VARARGS, NULL},
26252 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_clone", _wrap_BgpPathAttribMpUnreachNlriIpv6_clone, METH_VARARGS, NULL},
26253 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_parse", _wrap_BgpPathAttribMpUnreachNlriIpv6_parse, METH_VARARGS, NULL},
26254 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_write", _wrap_BgpPathAttribMpUnreachNlriIpv6_write, METH_VARARGS, NULL},
26255 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_doPrint", _wrap_BgpPathAttribMpUnreachNlriIpv6_doPrint, METH_VARARGS, NULL},
26256 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_length", _wrap_BgpPathAttribMpUnreachNlriIpv6_length, METH_VARARGS, NULL},
26257 { (
char *)
"delete_BgpPathAttribMpUnreachNlriIpv6", _wrap_delete_BgpPathAttribMpUnreachNlriIpv6, METH_VARARGS, NULL},
26258 { (
char *)
"BgpPathAttribMpUnreachNlriIpv6_swigregister", BgpPathAttribMpUnreachNlriIpv6_swigregister, METH_VARARGS, NULL},
26259 { (
char *)
"new_BgpPathAttribMpUnreachNlriUnknow", _wrap_new_BgpPathAttribMpUnreachNlriUnknow, METH_VARARGS, NULL},
26260 { (
char *)
"delete_BgpPathAttribMpUnreachNlriUnknow", _wrap_delete_BgpPathAttribMpUnreachNlriUnknow, METH_VARARGS, NULL},
26261 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_clone", _wrap_BgpPathAttribMpUnreachNlriUnknow_clone, METH_VARARGS, NULL},
26262 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_parse", _wrap_BgpPathAttribMpUnreachNlriUnknow_parse, METH_VARARGS, NULL},
26263 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_write", _wrap_BgpPathAttribMpUnreachNlriUnknow_write, METH_VARARGS, NULL},
26264 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_doPrint", _wrap_BgpPathAttribMpUnreachNlriUnknow_doPrint, METH_VARARGS, NULL},
26265 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_length", _wrap_BgpPathAttribMpUnreachNlriUnknow_length, METH_VARARGS, NULL},
26266 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutes", _wrap_BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutes, METH_VARARGS, NULL},
26267 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutesLength", _wrap_BgpPathAttribMpUnreachNlriUnknow_getWithdrawnRoutesLength, METH_VARARGS, NULL},
26268 { (
char *)
"BgpPathAttribMpUnreachNlriUnknow_swigregister", BgpPathAttribMpUnreachNlriUnknow_swigregister, METH_VARARGS, NULL},
26269 { (
char *)
"Rib6Entry_src_router_id_set", _wrap_Rib6Entry_src_router_id_set, METH_VARARGS, NULL},
26270 { (
char *)
"Rib6Entry_src_router_id_get", _wrap_Rib6Entry_src_router_id_get, METH_VARARGS, NULL},
26271 { (
char *)
"Rib6Entry_update_id_set", _wrap_Rib6Entry_update_id_set, METH_VARARGS, NULL},
26272 { (
char *)
"Rib6Entry_update_id_get", _wrap_Rib6Entry_update_id_get, METH_VARARGS, NULL},
26273 { (
char *)
"Rib6Entry_weight_set", _wrap_Rib6Entry_weight_set, METH_VARARGS, NULL},
26274 { (
char *)
"Rib6Entry_weight_get", _wrap_Rib6Entry_weight_get, METH_VARARGS, NULL},
26275 { (
char *)
"Rib6Entry_attribs_set", _wrap_Rib6Entry_attribs_set, METH_VARARGS, NULL},
26276 { (
char *)
"Rib6Entry_attribs_get", _wrap_Rib6Entry_attribs_get, METH_VARARGS, NULL},
26277 { (
char *)
"Rib6Entry___gt__", _wrap_Rib6Entry___gt__, METH_VARARGS, NULL},
26278 { (
char *)
"new_Rib6Entry", _wrap_new_Rib6Entry, METH_VARARGS, NULL},
26279 { (
char *)
"delete_Rib6Entry", _wrap_delete_Rib6Entry, METH_VARARGS, NULL},
26280 { (
char *)
"Rib6Entry_swigregister", Rib6Entry_swigregister, METH_VARARGS, NULL},
26281 { (
char *)
"Rib4Entry_src_router_id_set", _wrap_Rib4Entry_src_router_id_set, METH_VARARGS, NULL},
26282 { (
char *)
"Rib4Entry_src_router_id_get", _wrap_Rib4Entry_src_router_id_get, METH_VARARGS, NULL},
26283 { (
char *)
"Rib4Entry_update_id_set", _wrap_Rib4Entry_update_id_set, METH_VARARGS, NULL},
26284 { (
char *)
"Rib4Entry_update_id_get", _wrap_Rib4Entry_update_id_get, METH_VARARGS, NULL},
26285 { (
char *)
"Rib4Entry_weight_set", _wrap_Rib4Entry_weight_set, METH_VARARGS, NULL},
26286 { (
char *)
"Rib4Entry_weight_get", _wrap_Rib4Entry_weight_get, METH_VARARGS, NULL},
26287 { (
char *)
"Rib4Entry_attribs_set", _wrap_Rib4Entry_attribs_set, METH_VARARGS, NULL},
26288 { (
char *)
"Rib4Entry_attribs_get", _wrap_Rib4Entry_attribs_get, METH_VARARGS, NULL},
26289 { (
char *)
"Rib4Entry___gt__", _wrap_Rib4Entry___gt__, METH_VARARGS, NULL},
26290 { (
char *)
"new_Rib4Entry", _wrap_new_Rib4Entry, METH_VARARGS, NULL},
26291 { (
char *)
"delete_Rib4Entry", _wrap_delete_Rib4Entry, METH_VARARGS, NULL},
26292 { (
char *)
"Rib4Entry_swigregister", Rib4Entry_swigregister, METH_VARARGS, NULL},
26293 { (
char *)
"new_BgpRib4Entry", _wrap_new_BgpRib4Entry, METH_VARARGS, NULL},
26294 { (
char *)
"BgpRib4Entry_route_set", _wrap_BgpRib4Entry_route_set, METH_VARARGS, NULL},
26295 { (
char *)
"BgpRib4Entry_route_get", _wrap_BgpRib4Entry_route_get, METH_VARARGS, NULL},
26296 { (
char *)
"BgpRib4Entry_getNexthop", _wrap_BgpRib4Entry_getNexthop, METH_VARARGS, NULL},
26297 { (
char *)
"delete_BgpRib4Entry", _wrap_delete_BgpRib4Entry, METH_VARARGS, NULL},
26298 { (
char *)
"BgpRib4Entry_swigregister", BgpRib4Entry_swigregister, METH_VARARGS, NULL},
26299 { (
char *)
"new_BgpRib4", _wrap_new_BgpRib4, METH_VARARGS, NULL},
26300 { (
char *)
"BgpRib4_insert", _wrap_BgpRib4_insert, METH_VARARGS, NULL},
26301 { (
char *)
"BgpRib4_withdraw", _wrap_BgpRib4_withdraw, METH_VARARGS, NULL},
26302 { (
char *)
"BgpRib4_discard", _wrap_BgpRib4_discard, METH_VARARGS, NULL},
26303 { (
char *)
"BgpRib4_lookup", _wrap_BgpRib4_lookup, METH_VARARGS, NULL},
26304 { (
char *)
"BgpRib4_get", _wrap_BgpRib4_get, METH_VARARGS, NULL},
26305 { (
char *)
"delete_BgpRib4", _wrap_delete_BgpRib4, METH_VARARGS, NULL},
26306 { (
char *)
"BgpRib4_swigregister", BgpRib4_swigregister, METH_VARARGS, NULL},
26307 { (
char *)
"new_BgpRib6Entry", _wrap_new_BgpRib6Entry, METH_VARARGS, NULL},
26308 { (
char *)
"BgpRib6Entry_route_set", _wrap_BgpRib6Entry_route_set, METH_VARARGS, NULL},
26309 { (
char *)
"BgpRib6Entry_route_get", _wrap_BgpRib6Entry_route_get, METH_VARARGS, NULL},
26310 { (
char *)
"BgpRib6Entry_nexthop_global_set", _wrap_BgpRib6Entry_nexthop_global_set, METH_VARARGS, NULL},
26311 { (
char *)
"BgpRib6Entry_nexthop_global_get", _wrap_BgpRib6Entry_nexthop_global_get, METH_VARARGS, NULL},
26312 { (
char *)
"BgpRib6Entry_nexthop_linklocal_set", _wrap_BgpRib6Entry_nexthop_linklocal_set, METH_VARARGS, NULL},
26313 { (
char *)
"BgpRib6Entry_nexthop_linklocal_get", _wrap_BgpRib6Entry_nexthop_linklocal_get, METH_VARARGS, NULL},
26314 { (
char *)
"delete_BgpRib6Entry", _wrap_delete_BgpRib6Entry, METH_VARARGS, NULL},
26315 { (
char *)
"BgpRib6Entry_swigregister", BgpRib6Entry_swigregister, METH_VARARGS, NULL},
26316 { (
char *)
"new_BgpRib6", _wrap_new_BgpRib6, METH_VARARGS, NULL},
26317 { (
char *)
"BgpRib6_insert", _wrap_BgpRib6_insert, METH_VARARGS, NULL},
26318 { (
char *)
"BgpRib6_withdraw", _wrap_BgpRib6_withdraw, METH_VARARGS, NULL},
26319 { (
char *)
"BgpRib6_discard", _wrap_BgpRib6_discard, METH_VARARGS, NULL},
26320 { (
char *)
"BgpRib6_lookup", _wrap_BgpRib6_lookup, METH_VARARGS, NULL},
26321 { (
char *)
"BgpRib6_get", _wrap_BgpRib6_get, METH_VARARGS, NULL},
26322 { (
char *)
"delete_BgpRib6", _wrap_delete_BgpRib6, METH_VARARGS, NULL},
26323 { (
char *)
"BgpRib6_swigregister", BgpRib6_swigregister, METH_VARARGS, NULL},
26324 { (
char *)
"new_BgpSink", _wrap_new_BgpSink, METH_VARARGS, NULL},
26325 { (
char *)
"BgpSink_fill", _wrap_BgpSink_fill, METH_VARARGS, NULL},
26326 { (
char *)
"BgpSink_pour", _wrap_BgpSink_pour, METH_VARARGS, NULL},
26327 { (
char *)
"BgpSink_getBytesInSink", _wrap_BgpSink_getBytesInSink, METH_VARARGS, NULL},
26328 { (
char *)
"BgpSink_drain", _wrap_BgpSink_drain, METH_VARARGS, NULL},
26329 { (
char *)
"BgpSink_setLogger", _wrap_BgpSink_setLogger, METH_VARARGS, NULL},
26330 { (
char *)
"delete_BgpSink", _wrap_delete_BgpSink, METH_VARARGS, NULL},
26331 { (
char *)
"BgpSink_swigregister", BgpSink_swigregister, METH_VARARGS, NULL},
26332 { (
char *)
"BgpUpdateMessage_withdrawn_routes_set", _wrap_BgpUpdateMessage_withdrawn_routes_set, METH_VARARGS, NULL},
26333 { (
char *)
"BgpUpdateMessage_withdrawn_routes_get", _wrap_BgpUpdateMessage_withdrawn_routes_get, METH_VARARGS, NULL},
26334 { (
char *)
"BgpUpdateMessage_path_attribute_set", _wrap_BgpUpdateMessage_path_attribute_set, METH_VARARGS, NULL},
26335 { (
char *)
"BgpUpdateMessage_path_attribute_get", _wrap_BgpUpdateMessage_path_attribute_get, METH_VARARGS, NULL},
26336 { (
char *)
"BgpUpdateMessage_nlri_set", _wrap_BgpUpdateMessage_nlri_set, METH_VARARGS, NULL},
26337 { (
char *)
"BgpUpdateMessage_nlri_get", _wrap_BgpUpdateMessage_nlri_get, METH_VARARGS, NULL},
26338 { (
char *)
"new_BgpUpdateMessage", _wrap_new_BgpUpdateMessage, METH_VARARGS, NULL},
26339 { (
char *)
"BgpUpdateMessage_getAttrib", _wrap_BgpUpdateMessage_getAttrib, METH_VARARGS, NULL},
26340 { (
char *)
"BgpUpdateMessage_hasAttrib", _wrap_BgpUpdateMessage_hasAttrib, METH_VARARGS, NULL},
26341 { (
char *)
"BgpUpdateMessage_addAttrib", _wrap_BgpUpdateMessage_addAttrib, METH_VARARGS, NULL},
26342 { (
char *)
"BgpUpdateMessage_setAttribs", _wrap_BgpUpdateMessage_setAttribs, METH_VARARGS, NULL},
26343 { (
char *)
"BgpUpdateMessage_dropAttrib", _wrap_BgpUpdateMessage_dropAttrib, METH_VARARGS, NULL},
26344 { (
char *)
"BgpUpdateMessage_updateAttribute", _wrap_BgpUpdateMessage_updateAttribute, METH_VARARGS, NULL},
26345 { (
char *)
"BgpUpdateMessage_dropNonTransitive", _wrap_BgpUpdateMessage_dropNonTransitive, METH_VARARGS, NULL},
26346 { (
char *)
"BgpUpdateMessage_setNextHop", _wrap_BgpUpdateMessage_setNextHop, METH_VARARGS, NULL},
26347 { (
char *)
"BgpUpdateMessage_prepend", _wrap_BgpUpdateMessage_prepend, METH_VARARGS, NULL},
26348 { (
char *)
"BgpUpdateMessage_restoreAsPath", _wrap_BgpUpdateMessage_restoreAsPath, METH_VARARGS, NULL},
26349 { (
char *)
"BgpUpdateMessage_downgradeAsPath", _wrap_BgpUpdateMessage_downgradeAsPath, METH_VARARGS, NULL},
26350 { (
char *)
"BgpUpdateMessage_restoreAggregator", _wrap_BgpUpdateMessage_restoreAggregator, METH_VARARGS, NULL},
26351 { (
char *)
"BgpUpdateMessage_downgradeAggregator", _wrap_BgpUpdateMessage_downgradeAggregator, METH_VARARGS, NULL},
26352 { (
char *)
"BgpUpdateMessage_setWithdrawn4", _wrap_BgpUpdateMessage_setWithdrawn4, METH_VARARGS, NULL},
26353 { (
char *)
"BgpUpdateMessage_addWithdrawn4", _wrap_BgpUpdateMessage_addWithdrawn4, METH_VARARGS, NULL},
26354 { (
char *)
"BgpUpdateMessage_setNlri4", _wrap_BgpUpdateMessage_setNlri4, METH_VARARGS, NULL},
26355 { (
char *)
"BgpUpdateMessage_addNlri4", _wrap_BgpUpdateMessage_addNlri4, METH_VARARGS, NULL},
26356 { (
char *)
"BgpUpdateMessage_setWithdrawn6", _wrap_BgpUpdateMessage_setWithdrawn6, METH_VARARGS, NULL},
26357 { (
char *)
"BgpUpdateMessage_setNlri6", _wrap_BgpUpdateMessage_setNlri6, METH_VARARGS, NULL},
26358 { (
char *)
"BgpUpdateMessage_doPrint", _wrap_BgpUpdateMessage_doPrint, METH_VARARGS, NULL},
26359 { (
char *)
"BgpUpdateMessage_parse", _wrap_BgpUpdateMessage_parse, METH_VARARGS, NULL},
26360 { (
char *)
"BgpUpdateMessage_write", _wrap_BgpUpdateMessage_write, METH_VARARGS, NULL},
26361 { (
char *)
"delete_BgpUpdateMessage", _wrap_delete_BgpUpdateMessage, METH_VARARGS, NULL},
26362 { (
char *)
"BgpUpdateMessage_swigregister", BgpUpdateMessage_swigregister, METH_VARARGS, NULL},
26363 { (
char *)
"Clock_getTime", _wrap_Clock_getTime, METH_VARARGS, NULL},
26364 { (
char *)
"delete_Clock", _wrap_delete_Clock, METH_VARARGS, NULL},
26365 { (
char *)
"Clock_swigregister", Clock_swigregister, METH_VARARGS, NULL},
26366 { (
char *)
"RealtimeClock_getTime", _wrap_RealtimeClock_getTime, METH_VARARGS, NULL},
26367 { (
char *)
"new_RealtimeClock", _wrap_new_RealtimeClock, METH_VARARGS, NULL},
26368 { (
char *)
"delete_RealtimeClock", _wrap_delete_RealtimeClock, METH_VARARGS, NULL},
26369 { (
char *)
"RealtimeClock_swigregister", RealtimeClock_swigregister, METH_VARARGS, NULL},
26370 { NULL, NULL, 0, NULL }
26376 static void *_p_libbgp__RealtimeClockTo_p_libbgp__Clock(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26379 static void *_p_libbgp__BgpPathAttribMpReachNlriUnknowTo_p_libbgp__BgpPathAttribMpNlriBase(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26382 static void *_p_libbgp__BgpPathAttribMpUnreachNlriUnknowTo_p_libbgp__BgpPathAttribMpNlriBase(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26385 static void *_p_libbgp__BgpPathAttribMpReachNlriIpv6To_p_libbgp__BgpPathAttribMpNlriBase(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26388 static void *_p_libbgp__BgpPathAttribMpUnreachNlriIpv6To_p_libbgp__BgpPathAttribMpNlriBase(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26391 static void *_p_libbgp__BgpPathAttribMpUnreachNlriIpv6To_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26394 static void *_p_libbgp__BgpPathAttribMpReachNlriIpv6To_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26397 static void *_p_libbgp__BgpPathAttribOriginTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26400 static void *_p_libbgp__BgpPathAttribAsPathTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26403 static void *_p_libbgp__BgpPathAttribCommunityTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26406 static void *_p_libbgp__BgpPathAttribLocalPrefTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26409 static void *_p_libbgp__BgpPathAttribMpReachNlriUnknowTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26412 static void *_p_libbgp__BgpPathAttribMpUnreachNlriUnknowTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26415 static void *_p_libbgp__BgpPathAttribAs4AggregatorTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26418 static void *_p_libbgp__BgpPathAttribAggregatorTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26421 static void *_p_libbgp__BgpPathAttribNexthopTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26424 static void *_p_libbgp__BgpPathAttribMedTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26427 static void *_p_libbgp__BgpPathAttribAs4PathTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26430 static void *_p_libbgp__BgpPathAttribAtomicAggregateTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26433 static void *_p_libbgp__BgpPathAttribMpNlriBaseTo_p_libbgp__BgpPathAttrib(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26436 static void *_p_libbgp__BgpFilterRuleRoute6To_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26439 static void *_p_libbgp__BgpFilterRuleRoute4To_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26442 static void *_p_libbgp__BgpRib6EntryTo_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26445 static void *_p_libbgp__BgpRib4EntryTo_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26448 static void *_p_libbgp__Route4WithdrawEventTo_p_libbgp__RouteEvent(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26451 static void *_p_libbgp__Route6WithdrawEventTo_p_libbgp__RouteEvent(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26454 static void *_p_libbgp__RouteCollisionEventTo_p_libbgp__RouteEvent(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26457 static void *_p_libbgp__Route4AddEventTo_p_libbgp__RouteEvent(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26460 static void *_p_libbgp__Route6AddEventTo_p_libbgp__RouteEvent(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26463 static void *_p_libbgp__BgpCapabilityMpBgpTo_p_libbgp__BgpCapability(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26466 static void *_p_libbgp__BgpCapabilityUnknowTo_p_libbgp__BgpCapability(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26469 static void *_p_libbgp__BgpCapability4BytesAsnTo_p_libbgp__BgpCapability(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26472 static void *_p_libbgp__FdOutHandlerTo_p_libbgp__BgpOutHandler(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26475 static void *_p_libbgp__BgpFsmTo_p_libbgp__RouteEventReceiver(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26478 static void *_p_libbgp__Prefix4To_p_libbgp__Prefix(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26481 static void *_p_libbgp__Prefix6To_p_libbgp__Prefix(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26484 static void *_p_libbgp__BgpPathAttribOriginTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26487 static void *_p_libbgp__BgpPathAttribAsPathTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26490 static void *_p_libbgp__BgpPathAttribMpReachNlriIpv6To_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26493 static void *_p_libbgp__BgpPathAttribMpUnreachNlriIpv6To_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26496 static void *_p_libbgp__BgpPathAttribLocalPrefTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26499 static void *_p_libbgp__BgpPathAttribCommunityTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26502 static void *_p_libbgp__BgpCapabilityUnknowTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26505 static void *_p_libbgp__BgpPathAttribMpReachNlriUnknowTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26508 static void *_p_libbgp__BgpPathAttribMpUnreachNlriUnknowTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26511 static void *_p_libbgp__BgpOpenMessageTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26514 static void *_p_libbgp__BgpNotificationMessageTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26517 static void *_p_libbgp__BgpKeepaliveMessageTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26520 static void *_p_libbgp__BgpBadMessageTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26523 static void *_p_libbgp__BgpMessageTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26526 static void *_p_libbgp__BgpUpdateMessageTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26529 static void *_p_libbgp__BgpCapabilityTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26532 static void *_p_libbgp__BgpCapabilityMpBgpTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26535 static void *_p_libbgp__BgpCapability4BytesAsnTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26538 static void *_p_libbgp__BgpPathAttribAggregatorTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26541 static void *_p_libbgp__BgpPathAttribAs4AggregatorTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26544 static void *_p_libbgp__BgpPathAttribNexthopTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26547 static void *_p_libbgp__BgpPacketTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26550 static void *_p_libbgp__BgpPathAttribMedTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26553 static void *_p_libbgp__BgpPathAttribAtomicAggregateTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26556 static void *_p_libbgp__BgpPathAttribAs4PathTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26559 static void *_p_libbgp__BgpPathAttribMpNlriBaseTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26562 static void *_p_libbgp__BgpPathAttribTo_p_libbgp__Serializable(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26565 static void *_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_tTo_p_libbgp__BgpFilterRule(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26568 static void *_p_libbgp__BgpFilterRuleRoute6To_p_libbgp__BgpFilterRule(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26571 static void *_p_libbgp__BgpFilterRuleAsPathTo_p_libbgp__BgpFilterRule(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26574 static void *_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_tTo_p_libbgp__BgpFilterRule(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26577 static void *_p_libbgp__BgpFilterRuleRoute4To_p_libbgp__BgpFilterRule(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26580 static void *_p_libbgp__BgpFilterRuleCommunityTo_p_libbgp__BgpFilterRule(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26583 static void *_p_libbgp__BgpBadMessageTo_p_libbgp__BgpMessage(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26586 static void *_p_libbgp__BgpKeepaliveMessageTo_p_libbgp__BgpMessage(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26589 static void *_p_libbgp__BgpNotificationMessageTo_p_libbgp__BgpMessage(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26592 static void *_p_libbgp__BgpOpenMessageTo_p_libbgp__BgpMessage(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26595 static void *_p_libbgp__BgpUpdateMessageTo_p_libbgp__BgpMessage(
void *x,
int *SWIGUNUSEDPARM(newmemory)) {
26598 static swig_type_info _swigt__p_Afi = {
"_p_Afi",
"Afi *", 0, 0, (
void*)0, 0};
26599 static swig_type_info _swigt__p_BgpOutHandler = {
"_p_BgpOutHandler",
"BgpOutHandler *", 0, 0, (
void*)0, 0};
26600 static swig_type_info _swigt__p_BgpRib4 = {
"_p_BgpRib4",
"BgpRib4 *", 0, 0, (
void*)0, 0};
26601 static swig_type_info _swigt__p_BgpRib6 = {
"_p_BgpRib6",
"BgpRib6 *", 0, 0, (
void*)0, 0};
26602 static swig_type_info _swigt__p_Clock = {
"_p_Clock",
"Clock *", 0, 0, (
void*)0, 0};
26603 static swig_type_info _swigt__p_char = {
"_p_char",
"char *", 0, 0, (
void*)0, 0};
26604 static swig_type_info _swigt__p_int = {
"_p_int",
"intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (
void*)0, 0};
26605 static swig_type_info _swigt__p_libbgp__BgpAsPathSegment = {
"_p_libbgp__BgpAsPathSegment",
"libbgp::BgpAsPathSegment *", 0, 0, (
void*)0, 0};
26606 static swig_type_info _swigt__p_libbgp__BgpBadMessage = {
"_p_libbgp__BgpBadMessage",
"libbgp::BgpBadMessage *", 0, 0, (
void*)0, 0};
26607 static swig_type_info _swigt__p_libbgp__BgpCapability = {
"_p_libbgp__BgpCapability",
"libbgp::BgpCapability *", 0, 0, (
void*)0, 0};
26608 static swig_type_info _swigt__p_libbgp__BgpCapability4BytesAsn = {
"_p_libbgp__BgpCapability4BytesAsn",
"libbgp::BgpCapability4BytesAsn *", 0, 0, (
void*)0, 0};
26609 static swig_type_info _swigt__p_libbgp__BgpCapabilityMpBgp = {
"_p_libbgp__BgpCapabilityMpBgp",
"libbgp::BgpCapabilityMpBgp *", 0, 0, (
void*)0, 0};
26610 static swig_type_info _swigt__p_libbgp__BgpCapabilityUnknow = {
"_p_libbgp__BgpCapabilityUnknow",
"libbgp::BgpCapabilityUnknow *", 0, 0, (
void*)0, 0};
26611 static swig_type_info _swigt__p_libbgp__BgpConfig = {
"_p_libbgp__BgpConfig",
"libbgp::BgpConfig *", 0, 0, (
void*)0, 0};
26612 static swig_type_info _swigt__p_libbgp__BgpFilterRule = {
"_p_libbgp__BgpFilterRule",
"libbgp::BgpFilterRule *", 0, 0, (
void*)0, 0};
26613 static swig_type_info _swigt__p_libbgp__BgpFilterRuleAsPath = {
"_p_libbgp__BgpFilterRuleAsPath",
"libbgp::BgpFilterRuleAsPath *", 0, 0, (
void*)0, 0};
26614 static swig_type_info _swigt__p_libbgp__BgpFilterRuleCommunity = {
"_p_libbgp__BgpFilterRuleCommunity",
"libbgp::BgpFilterRuleCommunity *", 0, 0, (
void*)0, 0};
26615 static swig_type_info _swigt__p_libbgp__BgpFilterRuleRoute4 = {
"_p_libbgp__BgpFilterRuleRoute4",
"libbgp::BgpFilterRuleRoute4 *", 0, 0, (
void*)0, 0};
26616 static swig_type_info _swigt__p_libbgp__BgpFilterRuleRoute6 = {
"_p_libbgp__BgpFilterRuleRoute6",
"libbgp::BgpFilterRuleRoute6 *", 0, 0, (
void*)0, 0};
26617 static swig_type_info _swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t = {
"_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t",
"libbgp::BgpFilterRuleRoute< libbgp::Prefix4 > *", 0, 0, (
void*)0, 0};
26618 static swig_type_info _swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t = {
"_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t",
"libbgp::BgpFilterRuleRoute< libbgp::Prefix6 > *", 0, 0, (
void*)0, 0};
26619 static swig_type_info _swigt__p_libbgp__BgpFilterRules = {
"_p_libbgp__BgpFilterRules",
"libbgp::BgpFilterRules *", 0, 0, (
void*)0, 0};
26620 static swig_type_info _swigt__p_libbgp__BgpFsm = {
"_p_libbgp__BgpFsm",
"libbgp::BgpFsm *", 0, 0, (
void*)0, 0};
26621 static swig_type_info _swigt__p_libbgp__BgpKeepaliveMessage = {
"_p_libbgp__BgpKeepaliveMessage",
"libbgp::BgpKeepaliveMessage *", 0, 0, (
void*)0, 0};
26622 static swig_type_info _swigt__p_libbgp__BgpLogHandler = {
"_p_libbgp__BgpLogHandler",
"libbgp::BgpLogHandler *", 0, 0, (
void*)0, 0};
26623 static swig_type_info _swigt__p_libbgp__BgpMessage = {
"_p_libbgp__BgpMessage",
"libbgp::BgpMessage *", 0, 0, (
void*)0, 0};
26624 static swig_type_info _swigt__p_libbgp__BgpNotificationMessage = {
"_p_libbgp__BgpNotificationMessage",
"libbgp::BgpNotificationMessage *", 0, 0, (
void*)0, 0};
26625 static swig_type_info _swigt__p_libbgp__BgpOpenMessage = {
"_p_libbgp__BgpOpenMessage",
"libbgp::BgpOpenMessage *", 0, 0, (
void*)0, 0};
26626 static swig_type_info _swigt__p_libbgp__BgpOutHandler = {
"_p_libbgp__BgpOutHandler",
"libbgp::BgpOutHandler *", 0, 0, (
void*)0, 0};
26627 static swig_type_info _swigt__p_libbgp__BgpPacket = {
"_p_libbgp__BgpPacket",
"libbgp::BgpPacket *", 0, 0, (
void*)0, 0};
26628 static swig_type_info _swigt__p_libbgp__BgpPathAttrib = {
"_p_libbgp__BgpPathAttrib",
"libbgp::BgpPathAttrib *", 0, 0, (
void*)0, 0};
26629 static swig_type_info _swigt__p_libbgp__BgpPathAttribAggregator = {
"_p_libbgp__BgpPathAttribAggregator",
"libbgp::BgpPathAttribAggregator *", 0, 0, (
void*)0, 0};
26630 static swig_type_info _swigt__p_libbgp__BgpPathAttribAs4Aggregator = {
"_p_libbgp__BgpPathAttribAs4Aggregator",
"libbgp::BgpPathAttribAs4Aggregator *", 0, 0, (
void*)0, 0};
26631 static swig_type_info _swigt__p_libbgp__BgpPathAttribAs4Path = {
"_p_libbgp__BgpPathAttribAs4Path",
"libbgp::BgpPathAttribAs4Path *", 0, 0, (
void*)0, 0};
26632 static swig_type_info _swigt__p_libbgp__BgpPathAttribAsPath = {
"_p_libbgp__BgpPathAttribAsPath",
"libbgp::BgpPathAttribAsPath *", 0, 0, (
void*)0, 0};
26633 static swig_type_info _swigt__p_libbgp__BgpPathAttribAtomicAggregate = {
"_p_libbgp__BgpPathAttribAtomicAggregate",
"libbgp::BgpPathAttribAtomicAggregate *", 0, 0, (
void*)0, 0};
26634 static swig_type_info _swigt__p_libbgp__BgpPathAttribCommunity = {
"_p_libbgp__BgpPathAttribCommunity",
"libbgp::BgpPathAttribCommunity *", 0, 0, (
void*)0, 0};
26635 static swig_type_info _swigt__p_libbgp__BgpPathAttribLocalPref = {
"_p_libbgp__BgpPathAttribLocalPref",
"libbgp::BgpPathAttribLocalPref *", 0, 0, (
void*)0, 0};
26636 static swig_type_info _swigt__p_libbgp__BgpPathAttribMed = {
"_p_libbgp__BgpPathAttribMed",
"libbgp::BgpPathAttribMed *", 0, 0, (
void*)0, 0};
26637 static swig_type_info _swigt__p_libbgp__BgpPathAttribMpNlriBase = {
"_p_libbgp__BgpPathAttribMpNlriBase",
"libbgp::BgpPathAttribMpNlriBase *", 0, 0, (
void*)0, 0};
26638 static swig_type_info _swigt__p_libbgp__BgpPathAttribMpReachNlriIpv6 = {
"_p_libbgp__BgpPathAttribMpReachNlriIpv6",
"libbgp::BgpPathAttribMpReachNlriIpv6 *", 0, 0, (
void*)0, 0};
26639 static swig_type_info _swigt__p_libbgp__BgpPathAttribMpReachNlriUnknow = {
"_p_libbgp__BgpPathAttribMpReachNlriUnknow",
"libbgp::BgpPathAttribMpReachNlriUnknow *", 0, 0, (
void*)0, 0};
26640 static swig_type_info _swigt__p_libbgp__BgpPathAttribMpUnreachNlriIpv6 = {
"_p_libbgp__BgpPathAttribMpUnreachNlriIpv6",
"libbgp::BgpPathAttribMpUnreachNlriIpv6 *", 0, 0, (
void*)0, 0};
26641 static swig_type_info _swigt__p_libbgp__BgpPathAttribMpUnreachNlriUnknow = {
"_p_libbgp__BgpPathAttribMpUnreachNlriUnknow",
"libbgp::BgpPathAttribMpUnreachNlriUnknow *", 0, 0, (
void*)0, 0};
26642 static swig_type_info _swigt__p_libbgp__BgpPathAttribNexthop = {
"_p_libbgp__BgpPathAttribNexthop",
"libbgp::BgpPathAttribNexthop *", 0, 0, (
void*)0, 0};
26643 static swig_type_info _swigt__p_libbgp__BgpPathAttribOrigin = {
"_p_libbgp__BgpPathAttribOrigin",
"libbgp::BgpPathAttribOrigin *", 0, 0, (
void*)0, 0};
26644 static swig_type_info _swigt__p_libbgp__BgpRib4 = {
"_p_libbgp__BgpRib4",
"libbgp::BgpRib4 *", 0, 0, (
void*)0, 0};
26645 static swig_type_info _swigt__p_libbgp__BgpRib4Entry = {
"_p_libbgp__BgpRib4Entry",
"libbgp::BgpRib4Entry *", 0, 0, (
void*)0, 0};
26646 static swig_type_info _swigt__p_libbgp__BgpRib6 = {
"_p_libbgp__BgpRib6",
"libbgp::BgpRib6 *", 0, 0, (
void*)0, 0};
26647 static swig_type_info _swigt__p_libbgp__BgpRib6Entry = {
"_p_libbgp__BgpRib6Entry",
"libbgp::BgpRib6Entry *", 0, 0, (
void*)0, 0};
26648 static swig_type_info _swigt__p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t = {
"_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t",
"libbgp::BgpRibEntry< libbgp::BgpRib4Entry > *", 0, 0, (
void*)0, 0};
26649 static swig_type_info _swigt__p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t = {
"_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t",
"libbgp::BgpRibEntry< libbgp::BgpRib6Entry > *", 0, 0, (
void*)0, 0};
26650 static swig_type_info _swigt__p_libbgp__BgpSink = {
"_p_libbgp__BgpSink",
"libbgp::BgpSink *", 0, 0, (
void*)0, 0};
26651 static swig_type_info _swigt__p_libbgp__BgpUpdateMessage = {
"_p_libbgp__BgpUpdateMessage",
"libbgp::BgpUpdateMessage *", 0, 0, (
void*)0, 0};
26652 static swig_type_info _swigt__p_libbgp__Clock = {
"_p_libbgp__Clock",
"libbgp::Clock *", 0, 0, (
void*)0, 0};
26653 static swig_type_info _swigt__p_libbgp__FdOutHandler = {
"_p_libbgp__FdOutHandler",
"libbgp::FdOutHandler *", 0, 0, (
void*)0, 0};
26654 static swig_type_info _swigt__p_libbgp__Prefix = {
"_p_libbgp__Prefix",
"libbgp::Prefix *", 0, 0, (
void*)0, 0};
26655 static swig_type_info _swigt__p_libbgp__Prefix4 = {
"_p_libbgp__Prefix4",
"libbgp::Prefix4 *", 0, 0, (
void*)0, 0};
26656 static swig_type_info _swigt__p_libbgp__Prefix6 = {
"_p_libbgp__Prefix6",
"libbgp::Prefix6 *", 0, 0, (
void*)0, 0};
26657 static swig_type_info _swigt__p_libbgp__RealtimeClock = {
"_p_libbgp__RealtimeClock",
"libbgp::RealtimeClock *", 0, 0, (
void*)0, 0};
26658 static swig_type_info _swigt__p_libbgp__Route4AddEvent = {
"_p_libbgp__Route4AddEvent",
"libbgp::Route4AddEvent *", 0, 0, (
void*)0, 0};
26659 static swig_type_info _swigt__p_libbgp__Route4WithdrawEvent = {
"_p_libbgp__Route4WithdrawEvent",
"libbgp::Route4WithdrawEvent *", 0, 0, (
void*)0, 0};
26660 static swig_type_info _swigt__p_libbgp__Route6AddEvent = {
"_p_libbgp__Route6AddEvent",
"libbgp::Route6AddEvent *", 0, 0, (
void*)0, 0};
26661 static swig_type_info _swigt__p_libbgp__Route6WithdrawEvent = {
"_p_libbgp__Route6WithdrawEvent",
"libbgp::Route6WithdrawEvent *", 0, 0, (
void*)0, 0};
26662 static swig_type_info _swigt__p_libbgp__RouteCollisionEvent = {
"_p_libbgp__RouteCollisionEvent",
"libbgp::RouteCollisionEvent *", 0, 0, (
void*)0, 0};
26663 static swig_type_info _swigt__p_libbgp__RouteEvent = {
"_p_libbgp__RouteEvent",
"libbgp::RouteEvent *", 0, 0, (
void*)0, 0};
26664 static swig_type_info _swigt__p_libbgp__RouteEventBus = {
"_p_libbgp__RouteEventBus",
"libbgp::RouteEventBus *", 0, 0, (
void*)0, 0};
26665 static swig_type_info _swigt__p_libbgp__RouteEventReceiver = {
"_p_libbgp__RouteEventReceiver",
"libbgp::RouteEventReceiver *", 0, 0, (
void*)0, 0};
26666 static swig_type_info _swigt__p_libbgp__Serializable = {
"_p_libbgp__Serializable",
"libbgp::Serializable *", 0, 0, (
void*)0, 0};
26667 static swig_type_info _swigt__p_long_long = {
"_p_long_long",
"int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (
void*)0, 0};
26668 static swig_type_info _swigt__p_p_char = {
"_p_p_char",
"char **", 0, 0, (
void*)0, 0};
26669 static swig_type_info _swigt__p_p_libbgp__BgpPacket = {
"_p_p_libbgp__BgpPacket",
"libbgp::BgpPacket **", 0, 0, (
void*)0, 0};
26670 static swig_type_info _swigt__p_p_unsigned_char = {
"_p_p_unsigned_char",
"uint8_t **|unsigned char **", 0, 0, (
void*)0, 0};
26671 static swig_type_info _swigt__p_short = {
"_p_short",
"short *|int_least16_t *|int16_t *", 0, 0, (
void*)0, 0};
26672 static swig_type_info _swigt__p_signed_char = {
"_p_signed_char",
"signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (
void*)0, 0};
26673 static swig_type_info _swigt__p_size_t = {
"_p_size_t",
"size_t *", 0, 0, (
void*)0, 0};
26674 static swig_type_info _swigt__p_ssize_t = {
"_p_ssize_t",
"ssize_t *", 0, 0, (
void*)0, 0};
26675 static swig_type_info _swigt__p_std__shared_ptrT_libbgp__BgpCapability_t = {
"_p_std__shared_ptrT_libbgp__BgpCapability_t",
"std::shared_ptr< libbgp::BgpCapability > *", 0, 0, (
void*)0, 0};
26676 static swig_type_info _swigt__p_std__vectorT_Prefix4_t = {
"_p_std__vectorT_Prefix4_t",
"std::vector< Prefix4 > *", 0, 0, (
void*)0, 0};
26677 static swig_type_info _swigt__p_std__vectorT_Prefix6_t = {
"_p_std__vectorT_Prefix6_t",
"std::vector< Prefix6 > *", 0, 0, (
void*)0, 0};
26678 static swig_type_info _swigt__p_std__vectorT_libbgp__BgpAsPathSegment_t = {
"_p_std__vectorT_libbgp__BgpAsPathSegment_t",
"std::vector< libbgp::BgpAsPathSegment > *", 0, 0, (
void*)0, 0};
26679 static swig_type_info _swigt__p_std__vectorT_libbgp__BgpRib4Entry_t = {
"_p_std__vectorT_libbgp__BgpRib4Entry_t",
"std::vector< libbgp::BgpRib4Entry > *", 0, 0, (
void*)0, 0};
26680 static swig_type_info _swigt__p_std__vectorT_libbgp__BgpRib6Entry_t = {
"_p_std__vectorT_libbgp__BgpRib6Entry_t",
"std::vector< libbgp::BgpRib6Entry > *", 0, 0, (
void*)0, 0};
26681 static swig_type_info _swigt__p_std__vectorT_libbgp__Prefix4_t = {
"_p_std__vectorT_libbgp__Prefix4_t",
"std::vector< libbgp::Prefix4 > *", 0, 0, (
void*)0, 0};
26682 static swig_type_info _swigt__p_std__vectorT_libbgp__Prefix6_t = {
"_p_std__vectorT_libbgp__Prefix6_t",
"std::vector< libbgp::Prefix6 > *", 0, 0, (
void*)0, 0};
26683 static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t = {
"_p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t",
"std::vector< std::shared_ptr< BgpPathAttrib > > *", 0, 0, (
void*)0, 0};
26684 static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t = {
"_p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t",
"std::vector< std::shared_ptr< libbgp::BgpCapability > > *", 0, 0, (
void*)0, 0};
26685 static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t = {
"_p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t",
"std::vector< std::shared_ptr< libbgp::BgpPathAttrib > > *", 0, 0, (
void*)0, 0};
26686 static swig_type_info _swigt__p_std__vectorT_unsigned_int_t = {
"_p_std__vectorT_unsigned_int_t",
"std::vector< uint32_t > *|std::vector< unsigned int > *", 0, 0, (
void*)0, 0};
26687 static swig_type_info _swigt__p_unsigned_char = {
"_p_unsigned_char",
"unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (
void*)0, 0};
26688 static swig_type_info _swigt__p_unsigned_int = {
"_p_unsigned_int",
"uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (
void*)0, 0};
26689 static swig_type_info _swigt__p_unsigned_long_long = {
"_p_unsigned_long_long",
"uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (
void*)0, 0};
26690 static swig_type_info _swigt__p_unsigned_short = {
"_p_unsigned_short",
"unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (
void*)0, 0};
26694 &_swigt__p_BgpOutHandler,
26695 &_swigt__p_BgpRib4,
26696 &_swigt__p_BgpRib6,
26700 &_swigt__p_libbgp__BgpAsPathSegment,
26701 &_swigt__p_libbgp__BgpBadMessage,
26702 &_swigt__p_libbgp__BgpCapability,
26703 &_swigt__p_libbgp__BgpCapability4BytesAsn,
26704 &_swigt__p_libbgp__BgpCapabilityMpBgp,
26705 &_swigt__p_libbgp__BgpCapabilityUnknow,
26706 &_swigt__p_libbgp__BgpConfig,
26707 &_swigt__p_libbgp__BgpFilterRule,
26708 &_swigt__p_libbgp__BgpFilterRuleAsPath,
26709 &_swigt__p_libbgp__BgpFilterRuleCommunity,
26710 &_swigt__p_libbgp__BgpFilterRuleRoute4,
26711 &_swigt__p_libbgp__BgpFilterRuleRoute6,
26712 &_swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t,
26713 &_swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t,
26714 &_swigt__p_libbgp__BgpFilterRules,
26715 &_swigt__p_libbgp__BgpFsm,
26716 &_swigt__p_libbgp__BgpKeepaliveMessage,
26717 &_swigt__p_libbgp__BgpLogHandler,
26718 &_swigt__p_libbgp__BgpMessage,
26719 &_swigt__p_libbgp__BgpNotificationMessage,
26720 &_swigt__p_libbgp__BgpOpenMessage,
26721 &_swigt__p_libbgp__BgpOutHandler,
26722 &_swigt__p_libbgp__BgpPacket,
26723 &_swigt__p_libbgp__BgpPathAttrib,
26724 &_swigt__p_libbgp__BgpPathAttribAggregator,
26725 &_swigt__p_libbgp__BgpPathAttribAs4Aggregator,
26726 &_swigt__p_libbgp__BgpPathAttribAs4Path,
26727 &_swigt__p_libbgp__BgpPathAttribAsPath,
26728 &_swigt__p_libbgp__BgpPathAttribAtomicAggregate,
26729 &_swigt__p_libbgp__BgpPathAttribCommunity,
26730 &_swigt__p_libbgp__BgpPathAttribLocalPref,
26731 &_swigt__p_libbgp__BgpPathAttribMed,
26732 &_swigt__p_libbgp__BgpPathAttribMpNlriBase,
26733 &_swigt__p_libbgp__BgpPathAttribMpReachNlriIpv6,
26734 &_swigt__p_libbgp__BgpPathAttribMpReachNlriUnknow,
26735 &_swigt__p_libbgp__BgpPathAttribMpUnreachNlriIpv6,
26736 &_swigt__p_libbgp__BgpPathAttribMpUnreachNlriUnknow,
26737 &_swigt__p_libbgp__BgpPathAttribNexthop,
26738 &_swigt__p_libbgp__BgpPathAttribOrigin,
26739 &_swigt__p_libbgp__BgpRib4,
26740 &_swigt__p_libbgp__BgpRib4Entry,
26741 &_swigt__p_libbgp__BgpRib6,
26742 &_swigt__p_libbgp__BgpRib6Entry,
26743 &_swigt__p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t,
26744 &_swigt__p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t,
26745 &_swigt__p_libbgp__BgpSink,
26746 &_swigt__p_libbgp__BgpUpdateMessage,
26747 &_swigt__p_libbgp__Clock,
26748 &_swigt__p_libbgp__FdOutHandler,
26749 &_swigt__p_libbgp__Prefix,
26750 &_swigt__p_libbgp__Prefix4,
26751 &_swigt__p_libbgp__Prefix6,
26752 &_swigt__p_libbgp__RealtimeClock,
26753 &_swigt__p_libbgp__Route4AddEvent,
26754 &_swigt__p_libbgp__Route4WithdrawEvent,
26755 &_swigt__p_libbgp__Route6AddEvent,
26756 &_swigt__p_libbgp__Route6WithdrawEvent,
26757 &_swigt__p_libbgp__RouteCollisionEvent,
26758 &_swigt__p_libbgp__RouteEvent,
26759 &_swigt__p_libbgp__RouteEventBus,
26760 &_swigt__p_libbgp__RouteEventReceiver,
26761 &_swigt__p_libbgp__Serializable,
26762 &_swigt__p_long_long,
26764 &_swigt__p_p_libbgp__BgpPacket,
26765 &_swigt__p_p_unsigned_char,
26767 &_swigt__p_signed_char,
26769 &_swigt__p_ssize_t,
26770 &_swigt__p_std__shared_ptrT_libbgp__BgpCapability_t,
26771 &_swigt__p_std__vectorT_Prefix4_t,
26772 &_swigt__p_std__vectorT_Prefix6_t,
26773 &_swigt__p_std__vectorT_libbgp__BgpAsPathSegment_t,
26774 &_swigt__p_std__vectorT_libbgp__BgpRib4Entry_t,
26775 &_swigt__p_std__vectorT_libbgp__BgpRib6Entry_t,
26776 &_swigt__p_std__vectorT_libbgp__Prefix4_t,
26777 &_swigt__p_std__vectorT_libbgp__Prefix6_t,
26778 &_swigt__p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t,
26779 &_swigt__p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t,
26780 &_swigt__p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t,
26781 &_swigt__p_std__vectorT_unsigned_int_t,
26782 &_swigt__p_unsigned_char,
26783 &_swigt__p_unsigned_int,
26784 &_swigt__p_unsigned_long_long,
26785 &_swigt__p_unsigned_short,
26788 static swig_cast_info _swigc__p_Afi[] = { {&_swigt__p_Afi, 0, 0, 0},{0, 0, 0, 0}};
26789 static swig_cast_info _swigc__p_BgpOutHandler[] = { {&_swigt__p_BgpOutHandler, 0, 0, 0},{0, 0, 0, 0}};
26790 static swig_cast_info _swigc__p_BgpRib4[] = { {&_swigt__p_BgpRib4, 0, 0, 0},{0, 0, 0, 0}};
26791 static swig_cast_info _swigc__p_BgpRib6[] = { {&_swigt__p_BgpRib6, 0, 0, 0},{0, 0, 0, 0}};
26792 static swig_cast_info _swigc__p_Clock[] = { {&_swigt__p_Clock, 0, 0, 0},{0, 0, 0, 0}};
26793 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26794 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26795 static swig_cast_info _swigc__p_libbgp__BgpAsPathSegment[] = { {&_swigt__p_libbgp__BgpAsPathSegment, 0, 0, 0},{0, 0, 0, 0}};
26796 static swig_cast_info _swigc__p_libbgp__BgpBadMessage[] = { {&_swigt__p_libbgp__BgpBadMessage, 0, 0, 0},{0, 0, 0, 0}};
26797 static swig_cast_info _swigc__p_libbgp__BgpCapability[] = { {&_swigt__p_libbgp__BgpCapabilityMpBgp, _p_libbgp__BgpCapabilityMpBgpTo_p_libbgp__BgpCapability, 0, 0}, {&_swigt__p_libbgp__BgpCapabilityUnknow, _p_libbgp__BgpCapabilityUnknowTo_p_libbgp__BgpCapability, 0, 0}, {&_swigt__p_libbgp__BgpCapability, 0, 0, 0}, {&_swigt__p_libbgp__BgpCapability4BytesAsn, _p_libbgp__BgpCapability4BytesAsnTo_p_libbgp__BgpCapability, 0, 0},{0, 0, 0, 0}};
26798 static swig_cast_info _swigc__p_libbgp__BgpCapability4BytesAsn[] = { {&_swigt__p_libbgp__BgpCapability4BytesAsn, 0, 0, 0},{0, 0, 0, 0}};
26799 static swig_cast_info _swigc__p_libbgp__BgpCapabilityMpBgp[] = { {&_swigt__p_libbgp__BgpCapabilityMpBgp, 0, 0, 0},{0, 0, 0, 0}};
26800 static swig_cast_info _swigc__p_libbgp__BgpCapabilityUnknow[] = { {&_swigt__p_libbgp__BgpCapabilityUnknow, 0, 0, 0},{0, 0, 0, 0}};
26801 static swig_cast_info _swigc__p_libbgp__BgpConfig[] = { {&_swigt__p_libbgp__BgpConfig, 0, 0, 0},{0, 0, 0, 0}};
26802 static swig_cast_info _swigc__p_libbgp__BgpFilterRule[] = { {&_swigt__p_libbgp__BgpFilterRule, 0, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleRoute6, _p_libbgp__BgpFilterRuleRoute6To_p_libbgp__BgpFilterRule, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, _p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_tTo_p_libbgp__BgpFilterRule, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleAsPath, _p_libbgp__BgpFilterRuleAsPathTo_p_libbgp__BgpFilterRule, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, _p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_tTo_p_libbgp__BgpFilterRule, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleRoute4, _p_libbgp__BgpFilterRuleRoute4To_p_libbgp__BgpFilterRule, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleCommunity, _p_libbgp__BgpFilterRuleCommunityTo_p_libbgp__BgpFilterRule, 0, 0},{0, 0, 0, 0}};
26803 static swig_cast_info _swigc__p_libbgp__BgpFilterRuleAsPath[] = { {&_swigt__p_libbgp__BgpFilterRuleAsPath, 0, 0, 0},{0, 0, 0, 0}};
26804 static swig_cast_info _swigc__p_libbgp__BgpFilterRuleCommunity[] = { {&_swigt__p_libbgp__BgpFilterRuleCommunity, 0, 0, 0},{0, 0, 0, 0}};
26805 static swig_cast_info _swigc__p_libbgp__BgpFilterRuleRoute4[] = { {&_swigt__p_libbgp__BgpFilterRuleRoute4, 0, 0, 0},{0, 0, 0, 0}};
26806 static swig_cast_info _swigc__p_libbgp__BgpFilterRuleRoute6[] = { {&_swigt__p_libbgp__BgpFilterRuleRoute6, 0, 0, 0},{0, 0, 0, 0}};
26807 static swig_cast_info _swigc__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t[] = { {&_swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, 0, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleRoute4, _p_libbgp__BgpFilterRuleRoute4To_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t, 0, 0},{0, 0, 0, 0}};
26808 static swig_cast_info _swigc__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t[] = { {&_swigt__p_libbgp__BgpFilterRuleRoute6, _p_libbgp__BgpFilterRuleRoute6To_p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, 0, 0}, {&_swigt__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t, 0, 0, 0},{0, 0, 0, 0}};
26809 static swig_cast_info _swigc__p_libbgp__BgpFilterRules[] = { {&_swigt__p_libbgp__BgpFilterRules, 0, 0, 0},{0, 0, 0, 0}};
26810 static swig_cast_info _swigc__p_libbgp__BgpFsm[] = { {&_swigt__p_libbgp__BgpFsm, 0, 0, 0},{0, 0, 0, 0}};
26811 static swig_cast_info _swigc__p_libbgp__BgpKeepaliveMessage[] = { {&_swigt__p_libbgp__BgpKeepaliveMessage, 0, 0, 0},{0, 0, 0, 0}};
26812 static swig_cast_info _swigc__p_libbgp__BgpLogHandler[] = { {&_swigt__p_libbgp__BgpLogHandler, 0, 0, 0},{0, 0, 0, 0}};
26813 static swig_cast_info _swigc__p_libbgp__BgpMessage[] = { {&_swigt__p_libbgp__BgpMessage, 0, 0, 0}, {&_swigt__p_libbgp__BgpBadMessage, _p_libbgp__BgpBadMessageTo_p_libbgp__BgpMessage, 0, 0}, {&_swigt__p_libbgp__BgpKeepaliveMessage, _p_libbgp__BgpKeepaliveMessageTo_p_libbgp__BgpMessage, 0, 0}, {&_swigt__p_libbgp__BgpNotificationMessage, _p_libbgp__BgpNotificationMessageTo_p_libbgp__BgpMessage, 0, 0}, {&_swigt__p_libbgp__BgpOpenMessage, _p_libbgp__BgpOpenMessageTo_p_libbgp__BgpMessage, 0, 0}, {&_swigt__p_libbgp__BgpUpdateMessage, _p_libbgp__BgpUpdateMessageTo_p_libbgp__BgpMessage, 0, 0},{0, 0, 0, 0}};
26814 static swig_cast_info _swigc__p_libbgp__BgpNotificationMessage[] = { {&_swigt__p_libbgp__BgpNotificationMessage, 0, 0, 0},{0, 0, 0, 0}};
26815 static swig_cast_info _swigc__p_libbgp__BgpOpenMessage[] = { {&_swigt__p_libbgp__BgpOpenMessage, 0, 0, 0},{0, 0, 0, 0}};
26816 static swig_cast_info _swigc__p_libbgp__BgpOutHandler[] = { {&_swigt__p_libbgp__BgpOutHandler, 0, 0, 0}, {&_swigt__p_libbgp__FdOutHandler, _p_libbgp__FdOutHandlerTo_p_libbgp__BgpOutHandler, 0, 0},{0, 0, 0, 0}};
26817 static swig_cast_info _swigc__p_libbgp__BgpPacket[] = { {&_swigt__p_libbgp__BgpPacket, 0, 0, 0},{0, 0, 0, 0}};
26818 static swig_cast_info _swigc__p_libbgp__BgpPathAttrib[] = { {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriIpv6, _p_libbgp__BgpPathAttribMpUnreachNlriIpv6To_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpReachNlriIpv6, _p_libbgp__BgpPathAttribMpReachNlriIpv6To_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribOrigin, _p_libbgp__BgpPathAttribOriginTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAsPath, _p_libbgp__BgpPathAttribAsPathTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribCommunity, _p_libbgp__BgpPathAttribCommunityTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribLocalPref, _p_libbgp__BgpPathAttribLocalPrefTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpReachNlriUnknow, _p_libbgp__BgpPathAttribMpReachNlriUnknowTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriUnknow, _p_libbgp__BgpPathAttribMpUnreachNlriUnknowTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAs4Aggregator, _p_libbgp__BgpPathAttribAs4AggregatorTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAggregator, _p_libbgp__BgpPathAttribAggregatorTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribNexthop, _p_libbgp__BgpPathAttribNexthopTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMed, _p_libbgp__BgpPathAttribMedTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAs4Path, _p_libbgp__BgpPathAttribAs4PathTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAtomicAggregate, _p_libbgp__BgpPathAttribAtomicAggregateTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpNlriBase, _p_libbgp__BgpPathAttribMpNlriBaseTo_p_libbgp__BgpPathAttrib, 0, 0}, {&_swigt__p_libbgp__BgpPathAttrib, 0, 0, 0},{0, 0, 0, 0}};
26819 static swig_cast_info _swigc__p_libbgp__BgpPathAttribAggregator[] = { {&_swigt__p_libbgp__BgpPathAttribAggregator, 0, 0, 0},{0, 0, 0, 0}};
26820 static swig_cast_info _swigc__p_libbgp__BgpPathAttribAs4Aggregator[] = { {&_swigt__p_libbgp__BgpPathAttribAs4Aggregator, 0, 0, 0},{0, 0, 0, 0}};
26821 static swig_cast_info _swigc__p_libbgp__BgpPathAttribAs4Path[] = { {&_swigt__p_libbgp__BgpPathAttribAs4Path, 0, 0, 0},{0, 0, 0, 0}};
26822 static swig_cast_info _swigc__p_libbgp__BgpPathAttribAsPath[] = { {&_swigt__p_libbgp__BgpPathAttribAsPath, 0, 0, 0},{0, 0, 0, 0}};
26823 static swig_cast_info _swigc__p_libbgp__BgpPathAttribAtomicAggregate[] = { {&_swigt__p_libbgp__BgpPathAttribAtomicAggregate, 0, 0, 0},{0, 0, 0, 0}};
26824 static swig_cast_info _swigc__p_libbgp__BgpPathAttribCommunity[] = { {&_swigt__p_libbgp__BgpPathAttribCommunity, 0, 0, 0},{0, 0, 0, 0}};
26825 static swig_cast_info _swigc__p_libbgp__BgpPathAttribLocalPref[] = { {&_swigt__p_libbgp__BgpPathAttribLocalPref, 0, 0, 0},{0, 0, 0, 0}};
26826 static swig_cast_info _swigc__p_libbgp__BgpPathAttribMed[] = { {&_swigt__p_libbgp__BgpPathAttribMed, 0, 0, 0},{0, 0, 0, 0}};
26827 static swig_cast_info _swigc__p_libbgp__BgpPathAttribMpNlriBase[] = { {&_swigt__p_libbgp__BgpPathAttribMpReachNlriUnknow, _p_libbgp__BgpPathAttribMpReachNlriUnknowTo_p_libbgp__BgpPathAttribMpNlriBase, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriUnknow, _p_libbgp__BgpPathAttribMpUnreachNlriUnknowTo_p_libbgp__BgpPathAttribMpNlriBase, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpNlriBase, 0, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpReachNlriIpv6, _p_libbgp__BgpPathAttribMpReachNlriIpv6To_p_libbgp__BgpPathAttribMpNlriBase, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriIpv6, _p_libbgp__BgpPathAttribMpUnreachNlriIpv6To_p_libbgp__BgpPathAttribMpNlriBase, 0, 0},{0, 0, 0, 0}};
26828 static swig_cast_info _swigc__p_libbgp__BgpPathAttribMpReachNlriIpv6[] = { {&_swigt__p_libbgp__BgpPathAttribMpReachNlriIpv6, 0, 0, 0},{0, 0, 0, 0}};
26829 static swig_cast_info _swigc__p_libbgp__BgpPathAttribMpReachNlriUnknow[] = { {&_swigt__p_libbgp__BgpPathAttribMpReachNlriUnknow, 0, 0, 0},{0, 0, 0, 0}};
26830 static swig_cast_info _swigc__p_libbgp__BgpPathAttribMpUnreachNlriIpv6[] = { {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriIpv6, 0, 0, 0},{0, 0, 0, 0}};
26831 static swig_cast_info _swigc__p_libbgp__BgpPathAttribMpUnreachNlriUnknow[] = { {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriUnknow, 0, 0, 0},{0, 0, 0, 0}};
26832 static swig_cast_info _swigc__p_libbgp__BgpPathAttribNexthop[] = { {&_swigt__p_libbgp__BgpPathAttribNexthop, 0, 0, 0},{0, 0, 0, 0}};
26833 static swig_cast_info _swigc__p_libbgp__BgpPathAttribOrigin[] = { {&_swigt__p_libbgp__BgpPathAttribOrigin, 0, 0, 0},{0, 0, 0, 0}};
26834 static swig_cast_info _swigc__p_libbgp__BgpRib4[] = { {&_swigt__p_libbgp__BgpRib4, 0, 0, 0},{0, 0, 0, 0}};
26835 static swig_cast_info _swigc__p_libbgp__BgpRib4Entry[] = { {&_swigt__p_libbgp__BgpRib4Entry, 0, 0, 0},{0, 0, 0, 0}};
26836 static swig_cast_info _swigc__p_libbgp__BgpRib6[] = { {&_swigt__p_libbgp__BgpRib6, 0, 0, 0},{0, 0, 0, 0}};
26837 static swig_cast_info _swigc__p_libbgp__BgpRib6Entry[] = { {&_swigt__p_libbgp__BgpRib6Entry, 0, 0, 0},{0, 0, 0, 0}};
26838 static swig_cast_info _swigc__p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t[] = { {&_swigt__p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0, 0, 0}, {&_swigt__p_libbgp__BgpRib4Entry, _p_libbgp__BgpRib4EntryTo_p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t, 0, 0},{0, 0, 0, 0}};
26839 static swig_cast_info _swigc__p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t[] = { {&_swigt__p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0, 0, 0}, {&_swigt__p_libbgp__BgpRib6Entry, _p_libbgp__BgpRib6EntryTo_p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t, 0, 0},{0, 0, 0, 0}};
26840 static swig_cast_info _swigc__p_libbgp__BgpSink[] = { {&_swigt__p_libbgp__BgpSink, 0, 0, 0},{0, 0, 0, 0}};
26841 static swig_cast_info _swigc__p_libbgp__BgpUpdateMessage[] = { {&_swigt__p_libbgp__BgpUpdateMessage, 0, 0, 0},{0, 0, 0, 0}};
26842 static swig_cast_info _swigc__p_libbgp__Clock[] = { {&_swigt__p_libbgp__Clock, 0, 0, 0}, {&_swigt__p_libbgp__RealtimeClock, _p_libbgp__RealtimeClockTo_p_libbgp__Clock, 0, 0},{0, 0, 0, 0}};
26843 static swig_cast_info _swigc__p_libbgp__FdOutHandler[] = { {&_swigt__p_libbgp__FdOutHandler, 0, 0, 0},{0, 0, 0, 0}};
26844 static swig_cast_info _swigc__p_libbgp__Prefix[] = { {&_swigt__p_libbgp__Prefix, 0, 0, 0}, {&_swigt__p_libbgp__Prefix4, _p_libbgp__Prefix4To_p_libbgp__Prefix, 0, 0}, {&_swigt__p_libbgp__Prefix6, _p_libbgp__Prefix6To_p_libbgp__Prefix, 0, 0},{0, 0, 0, 0}};
26845 static swig_cast_info _swigc__p_libbgp__Prefix4[] = { {&_swigt__p_libbgp__Prefix4, 0, 0, 0},{0, 0, 0, 0}};
26846 static swig_cast_info _swigc__p_libbgp__Prefix6[] = { {&_swigt__p_libbgp__Prefix6, 0, 0, 0},{0, 0, 0, 0}};
26847 static swig_cast_info _swigc__p_libbgp__RealtimeClock[] = { {&_swigt__p_libbgp__RealtimeClock, 0, 0, 0},{0, 0, 0, 0}};
26848 static swig_cast_info _swigc__p_libbgp__Route4AddEvent[] = { {&_swigt__p_libbgp__Route4AddEvent, 0, 0, 0},{0, 0, 0, 0}};
26849 static swig_cast_info _swigc__p_libbgp__Route4WithdrawEvent[] = { {&_swigt__p_libbgp__Route4WithdrawEvent, 0, 0, 0},{0, 0, 0, 0}};
26850 static swig_cast_info _swigc__p_libbgp__Route6AddEvent[] = { {&_swigt__p_libbgp__Route6AddEvent, 0, 0, 0},{0, 0, 0, 0}};
26851 static swig_cast_info _swigc__p_libbgp__Route6WithdrawEvent[] = { {&_swigt__p_libbgp__Route6WithdrawEvent, 0, 0, 0},{0, 0, 0, 0}};
26852 static swig_cast_info _swigc__p_libbgp__RouteCollisionEvent[] = { {&_swigt__p_libbgp__RouteCollisionEvent, 0, 0, 0},{0, 0, 0, 0}};
26853 static swig_cast_info _swigc__p_libbgp__RouteEvent[] = { {&_swigt__p_libbgp__RouteEvent, 0, 0, 0}, {&_swigt__p_libbgp__Route4WithdrawEvent, _p_libbgp__Route4WithdrawEventTo_p_libbgp__RouteEvent, 0, 0}, {&_swigt__p_libbgp__Route6WithdrawEvent, _p_libbgp__Route6WithdrawEventTo_p_libbgp__RouteEvent, 0, 0}, {&_swigt__p_libbgp__RouteCollisionEvent, _p_libbgp__RouteCollisionEventTo_p_libbgp__RouteEvent, 0, 0}, {&_swigt__p_libbgp__Route4AddEvent, _p_libbgp__Route4AddEventTo_p_libbgp__RouteEvent, 0, 0}, {&_swigt__p_libbgp__Route6AddEvent, _p_libbgp__Route6AddEventTo_p_libbgp__RouteEvent, 0, 0},{0, 0, 0, 0}};
26854 static swig_cast_info _swigc__p_libbgp__RouteEventBus[] = { {&_swigt__p_libbgp__RouteEventBus, 0, 0, 0},{0, 0, 0, 0}};
26855 static swig_cast_info _swigc__p_libbgp__RouteEventReceiver[] = { {&_swigt__p_libbgp__RouteEventReceiver, 0, 0, 0}, {&_swigt__p_libbgp__BgpFsm, _p_libbgp__BgpFsmTo_p_libbgp__RouteEventReceiver, 0, 0},{0, 0, 0, 0}};
26856 static swig_cast_info _swigc__p_libbgp__Serializable[] = { {&_swigt__p_libbgp__BgpPathAttribMpReachNlriIpv6, _p_libbgp__BgpPathAttribMpReachNlriIpv6To_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriIpv6, _p_libbgp__BgpPathAttribMpUnreachNlriIpv6To_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribOrigin, _p_libbgp__BgpPathAttribOriginTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAsPath, _p_libbgp__BgpPathAttribAsPathTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribCommunity, _p_libbgp__BgpPathAttribCommunityTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribLocalPref, _p_libbgp__BgpPathAttribLocalPrefTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpCapabilityUnknow, _p_libbgp__BgpCapabilityUnknowTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpReachNlriUnknow, _p_libbgp__BgpPathAttribMpReachNlriUnknowTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpUnreachNlriUnknow, _p_libbgp__BgpPathAttribMpUnreachNlriUnknowTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__Serializable, 0, 0, 0}, {&_swigt__p_libbgp__BgpOpenMessage, _p_libbgp__BgpOpenMessageTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpNotificationMessage, _p_libbgp__BgpNotificationMessageTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpKeepaliveMessage, _p_libbgp__BgpKeepaliveMessageTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpBadMessage, _p_libbgp__BgpBadMessageTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpMessage, _p_libbgp__BgpMessageTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpUpdateMessage, _p_libbgp__BgpUpdateMessageTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpCapability, _p_libbgp__BgpCapabilityTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpCapabilityMpBgp, _p_libbgp__BgpCapabilityMpBgpTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpCapability4BytesAsn, _p_libbgp__BgpCapability4BytesAsnTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAggregator, _p_libbgp__BgpPathAttribAggregatorTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAs4Aggregator, _p_libbgp__BgpPathAttribAs4AggregatorTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribNexthop, _p_libbgp__BgpPathAttribNexthopTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPacket, _p_libbgp__BgpPacketTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMed, _p_libbgp__BgpPathAttribMedTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAtomicAggregate, _p_libbgp__BgpPathAttribAtomicAggregateTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribAs4Path, _p_libbgp__BgpPathAttribAs4PathTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttribMpNlriBase, _p_libbgp__BgpPathAttribMpNlriBaseTo_p_libbgp__Serializable, 0, 0}, {&_swigt__p_libbgp__BgpPathAttrib, _p_libbgp__BgpPathAttribTo_p_libbgp__Serializable, 0, 0},{0, 0, 0, 0}};
26857 static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
26858 static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
26859 static swig_cast_info _swigc__p_p_libbgp__BgpPacket[] = { {&_swigt__p_p_libbgp__BgpPacket, 0, 0, 0},{0, 0, 0, 0}};
26860 static swig_cast_info _swigc__p_p_unsigned_char[] = { {&_swigt__p_p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26861 static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
26862 static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
26863 static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
26864 static swig_cast_info _swigc__p_ssize_t[] = { {&_swigt__p_ssize_t, 0, 0, 0},{0, 0, 0, 0}};
26865 static swig_cast_info _swigc__p_std__shared_ptrT_libbgp__BgpCapability_t[] = { {&_swigt__p_std__shared_ptrT_libbgp__BgpCapability_t, 0, 0, 0},{0, 0, 0, 0}};
26866 static swig_cast_info _swigc__p_std__vectorT_Prefix4_t[] = { {&_swigt__p_std__vectorT_Prefix4_t, 0, 0, 0},{0, 0, 0, 0}};
26867 static swig_cast_info _swigc__p_std__vectorT_Prefix6_t[] = { {&_swigt__p_std__vectorT_Prefix6_t, 0, 0, 0},{0, 0, 0, 0}};
26868 static swig_cast_info _swigc__p_std__vectorT_libbgp__BgpAsPathSegment_t[] = { {&_swigt__p_std__vectorT_libbgp__BgpAsPathSegment_t, 0, 0, 0},{0, 0, 0, 0}};
26869 static swig_cast_info _swigc__p_std__vectorT_libbgp__BgpRib4Entry_t[] = { {&_swigt__p_std__vectorT_libbgp__BgpRib4Entry_t, 0, 0, 0},{0, 0, 0, 0}};
26870 static swig_cast_info _swigc__p_std__vectorT_libbgp__BgpRib6Entry_t[] = { {&_swigt__p_std__vectorT_libbgp__BgpRib6Entry_t, 0, 0, 0},{0, 0, 0, 0}};
26871 static swig_cast_info _swigc__p_std__vectorT_libbgp__Prefix4_t[] = { {&_swigt__p_std__vectorT_libbgp__Prefix4_t, 0, 0, 0},{0, 0, 0, 0}};
26872 static swig_cast_info _swigc__p_std__vectorT_libbgp__Prefix6_t[] = { {&_swigt__p_std__vectorT_libbgp__Prefix6_t, 0, 0, 0},{0, 0, 0, 0}};
26873 static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t, 0, 0, 0},{0, 0, 0, 0}};
26874 static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t, 0, 0, 0},{0, 0, 0, 0}};
26875 static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t, 0, 0, 0},{0, 0, 0, 0}};
26876 static swig_cast_info _swigc__p_std__vectorT_unsigned_int_t[] = { {&_swigt__p_std__vectorT_unsigned_int_t, 0, 0, 0},{0, 0, 0, 0}};
26877 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26878 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26879 static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
26880 static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
26884 _swigc__p_BgpOutHandler,
26890 _swigc__p_libbgp__BgpAsPathSegment,
26891 _swigc__p_libbgp__BgpBadMessage,
26892 _swigc__p_libbgp__BgpCapability,
26893 _swigc__p_libbgp__BgpCapability4BytesAsn,
26894 _swigc__p_libbgp__BgpCapabilityMpBgp,
26895 _swigc__p_libbgp__BgpCapabilityUnknow,
26896 _swigc__p_libbgp__BgpConfig,
26897 _swigc__p_libbgp__BgpFilterRule,
26898 _swigc__p_libbgp__BgpFilterRuleAsPath,
26899 _swigc__p_libbgp__BgpFilterRuleCommunity,
26900 _swigc__p_libbgp__BgpFilterRuleRoute4,
26901 _swigc__p_libbgp__BgpFilterRuleRoute6,
26902 _swigc__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix4_t,
26903 _swigc__p_libbgp__BgpFilterRuleRouteT_libbgp__Prefix6_t,
26904 _swigc__p_libbgp__BgpFilterRules,
26905 _swigc__p_libbgp__BgpFsm,
26906 _swigc__p_libbgp__BgpKeepaliveMessage,
26907 _swigc__p_libbgp__BgpLogHandler,
26908 _swigc__p_libbgp__BgpMessage,
26909 _swigc__p_libbgp__BgpNotificationMessage,
26910 _swigc__p_libbgp__BgpOpenMessage,
26911 _swigc__p_libbgp__BgpOutHandler,
26912 _swigc__p_libbgp__BgpPacket,
26913 _swigc__p_libbgp__BgpPathAttrib,
26914 _swigc__p_libbgp__BgpPathAttribAggregator,
26915 _swigc__p_libbgp__BgpPathAttribAs4Aggregator,
26916 _swigc__p_libbgp__BgpPathAttribAs4Path,
26917 _swigc__p_libbgp__BgpPathAttribAsPath,
26918 _swigc__p_libbgp__BgpPathAttribAtomicAggregate,
26919 _swigc__p_libbgp__BgpPathAttribCommunity,
26920 _swigc__p_libbgp__BgpPathAttribLocalPref,
26921 _swigc__p_libbgp__BgpPathAttribMed,
26922 _swigc__p_libbgp__BgpPathAttribMpNlriBase,
26923 _swigc__p_libbgp__BgpPathAttribMpReachNlriIpv6,
26924 _swigc__p_libbgp__BgpPathAttribMpReachNlriUnknow,
26925 _swigc__p_libbgp__BgpPathAttribMpUnreachNlriIpv6,
26926 _swigc__p_libbgp__BgpPathAttribMpUnreachNlriUnknow,
26927 _swigc__p_libbgp__BgpPathAttribNexthop,
26928 _swigc__p_libbgp__BgpPathAttribOrigin,
26929 _swigc__p_libbgp__BgpRib4,
26930 _swigc__p_libbgp__BgpRib4Entry,
26931 _swigc__p_libbgp__BgpRib6,
26932 _swigc__p_libbgp__BgpRib6Entry,
26933 _swigc__p_libbgp__BgpRibEntryT_libbgp__BgpRib4Entry_t,
26934 _swigc__p_libbgp__BgpRibEntryT_libbgp__BgpRib6Entry_t,
26935 _swigc__p_libbgp__BgpSink,
26936 _swigc__p_libbgp__BgpUpdateMessage,
26937 _swigc__p_libbgp__Clock,
26938 _swigc__p_libbgp__FdOutHandler,
26939 _swigc__p_libbgp__Prefix,
26940 _swigc__p_libbgp__Prefix4,
26941 _swigc__p_libbgp__Prefix6,
26942 _swigc__p_libbgp__RealtimeClock,
26943 _swigc__p_libbgp__Route4AddEvent,
26944 _swigc__p_libbgp__Route4WithdrawEvent,
26945 _swigc__p_libbgp__Route6AddEvent,
26946 _swigc__p_libbgp__Route6WithdrawEvent,
26947 _swigc__p_libbgp__RouteCollisionEvent,
26948 _swigc__p_libbgp__RouteEvent,
26949 _swigc__p_libbgp__RouteEventBus,
26950 _swigc__p_libbgp__RouteEventReceiver,
26951 _swigc__p_libbgp__Serializable,
26952 _swigc__p_long_long,
26954 _swigc__p_p_libbgp__BgpPacket,
26955 _swigc__p_p_unsigned_char,
26957 _swigc__p_signed_char,
26960 _swigc__p_std__shared_ptrT_libbgp__BgpCapability_t,
26961 _swigc__p_std__vectorT_Prefix4_t,
26962 _swigc__p_std__vectorT_Prefix6_t,
26963 _swigc__p_std__vectorT_libbgp__BgpAsPathSegment_t,
26964 _swigc__p_std__vectorT_libbgp__BgpRib4Entry_t,
26965 _swigc__p_std__vectorT_libbgp__BgpRib6Entry_t,
26966 _swigc__p_std__vectorT_libbgp__Prefix4_t,
26967 _swigc__p_std__vectorT_libbgp__Prefix6_t,
26968 _swigc__p_std__vectorT_std__shared_ptrT_BgpPathAttrib_t_t,
26969 _swigc__p_std__vectorT_std__shared_ptrT_libbgp__BgpCapability_t_t,
26970 _swigc__p_std__vectorT_std__shared_ptrT_libbgp__BgpPathAttrib_t_t,
26971 _swigc__p_std__vectorT_unsigned_int_t,
26972 _swigc__p_unsigned_char,
26973 _swigc__p_unsigned_int,
26974 _swigc__p_unsigned_long_long,
26975 _swigc__p_unsigned_short,
26982 {0, 0, 0, 0.0, 0, 0}};
27036 #define SWIGRUNTIME_DEBUG 27041 SWIG_InitializeModule(
void *clientdata) {
27047 if (swig_module.next==0) {
27049 swig_module.type_initial = swig_type_initial;
27050 swig_module.cast_initial = swig_cast_initial;
27051 swig_module.next = &swig_module;
27058 module_head = SWIG_GetModule(clientdata);
27059 if (!module_head) {
27062 SWIG_SetModule(clientdata, &swig_module);
27067 if (iter==&swig_module) {
27072 }
while (iter!= module_head);
27075 swig_module.next = module_head->next;
27076 module_head->next = &swig_module;
27083 if (init == 0)
return;
27086 #ifdef SWIGRUNTIME_DEBUG 27087 printf(
"SWIG_InitializeModule: size %d\n", swig_module.size);
27089 for (i = 0; i < swig_module.size; ++i) {
27094 #ifdef SWIGRUNTIME_DEBUG 27095 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27099 if (swig_module.next != &swig_module) {
27100 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
27104 #ifdef SWIGRUNTIME_DEBUG 27105 printf(
"SWIG_InitializeModule: found type %s\n", type->name);
27107 if (swig_module.type_initial[i]->clientdata) {
27108 type->clientdata = swig_module.type_initial[i]->clientdata;
27109 #ifdef SWIGRUNTIME_DEBUG 27110 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27114 type = swig_module.type_initial[i];
27118 cast = swig_module.cast_initial[i];
27119 while (cast->type) {
27122 #ifdef SWIGRUNTIME_DEBUG 27123 printf(
"SWIG_InitializeModule: look cast %s\n", cast->type->name);
27125 if (swig_module.next != &swig_module) {
27126 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27127 #ifdef SWIGRUNTIME_DEBUG 27128 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->name);
27132 if (type == swig_module.type_initial[i]) {
27133 #ifdef SWIGRUNTIME_DEBUG 27134 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->name);
27141 #ifdef SWIGRUNTIME_DEBUG 27142 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->name);
27144 if (!ocast) ret = 0;
27149 #ifdef SWIGRUNTIME_DEBUG 27150 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27153 type->cast->prev = cast;
27154 cast->next = type->cast;
27161 swig_module.types[i] = type;
27163 swig_module.types[i] = 0;
27165 #ifdef SWIGRUNTIME_DEBUG 27166 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
27167 for (i = 0; i < swig_module.size; ++i) {
27170 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27171 while (cast->type) {
27172 printf(
"SWIG_InitializeModule: cast type %s\n", cast->type->name);
27176 printf(
"---- Total casts: %d\n",j);
27178 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
27188 SWIG_PropagateClientData(
void) {
27191 static int init_run = 0;
27193 if (init_run)
return;
27196 for (i = 0; i < swig_module.size; i++) {
27197 if (swig_module.types[i]->clientdata) {
27198 equiv = swig_module.types[i]->cast;
27200 if (!equiv->converter) {
27201 if (equiv->type && !equiv->type->clientdata)
27202 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27204 equiv = equiv->next;
27225 #define SWIG_newvarlink() SWIG_Python_newvarlink() 27226 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) 27227 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) 27235 PyObject *(*get_attr)(void);
27236 int (*set_attr)(PyObject *);
27245 SWIGINTERN PyObject *
27247 #if PY_VERSION_HEX >= 0x03000000 27248 return PyUnicode_InternFromString(
"<Swig global variables>");
27250 return PyString_FromString(
"<Swig global variables>");
27254 SWIGINTERN PyObject *
27256 #if PY_VERSION_HEX >= 0x03000000 27257 PyObject *str = PyUnicode_InternFromString(
"(");
27261 for (var = v->vars; var; var=var->next) {
27262 tail = PyUnicode_FromString(var->name);
27263 joined = PyUnicode_Concat(str, tail);
27268 tail = PyUnicode_InternFromString(
", ");
27269 joined = PyUnicode_Concat(str, tail);
27275 tail = PyUnicode_InternFromString(
")");
27276 joined = PyUnicode_Concat(str, tail);
27281 PyObject *str = PyString_FromString(
"(");
27283 for (var = v->vars; var; var=var->next) {
27284 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27285 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(
", "));
27287 PyString_ConcatAndDel(&str,PyString_FromString(
")"));
27295 PyObject *str = swig_varlink_str(v);
27296 fprintf(fp,
"Swig global variables ");
27297 fprintf(fp,
"%s\n", tmp = SWIG_Python_str_AsChar(str));
27298 SWIG_Python_str_DelForPy3(tmp);
27314 SWIGINTERN PyObject *
27316 PyObject *res = NULL;
27319 if (strcmp(var->name,n) == 0) {
27320 res = (*var->get_attr)();
27325 if (res == NULL && !PyErr_Occurred()) {
27326 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
27336 if (strcmp(var->name,n) == 0) {
27337 res = (*var->set_attr)(p);
27342 if (res == 1 && !PyErr_Occurred()) {
27343 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
27348 SWIGINTERN PyTypeObject*
27349 swig_varlink_type(
void) {
27350 static char varlink__doc__[] =
"Swig var link object";
27351 static PyTypeObject varlink_type;
27352 static int type_init = 0;
27354 const PyTypeObject tmp = {
27356 #if PY_VERSION_HEX >= 0x03000000 27357 PyVarObject_HEAD_INIT(NULL, 0)
27359 PyObject_HEAD_INIT(NULL)
27362 (
char *)
"swigvarlink",
27365 (destructor) swig_varlink_dealloc,
27366 (printfunc) swig_varlink_print,
27367 (getattrfunc) swig_varlink_getattr,
27368 (setattrfunc) swig_varlink_setattr,
27370 (reprfunc) swig_varlink_repr,
27376 (reprfunc) swig_varlink_str,
27386 #if PY_VERSION_HEX >= 0x02020000 27387 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
27389 #if PY_VERSION_HEX >= 0x02030000 27392 #if PY_VERSION_HEX >= 0x02060000 27395 #if PY_VERSION_HEX >= 0x03040000 27398 #ifdef COUNT_ALLOCS 27402 #if PY_VERSION_HEX >= 0x02050000 27408 varlink_type = tmp;
27410 #if PY_VERSION_HEX < 0x02020000 27411 varlink_type.ob_type = &PyType_Type;
27413 if (PyType_Ready(&varlink_type) < 0)
27417 return &varlink_type;
27421 SWIGINTERN PyObject *
27422 SWIG_Python_newvarlink(
void) {
27427 return ((PyObject*) result);
27431 SWIG_Python_addvarlink(PyObject *p,
char *name, PyObject *(*get_attr)(
void),
int (*set_attr)(PyObject *p)) {
27435 size_t size = strlen(name)+1;
27436 gv->name = (
char *)malloc(size);
27438 strncpy(gv->name,name,size);
27439 gv->get_attr = get_attr;
27440 gv->set_attr = set_attr;
27441 gv->next = v->vars;
27447 SWIGINTERN PyObject *
27448 SWIG_globals(
void) {
27449 static PyObject *_SWIG_globals = 0;
27450 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27451 return _SWIG_globals;
27460 SWIG_Python_InstallConstants(PyObject *d,
swig_const_info constants[]) {
27463 for (i = 0; constants[i].type; ++i) {
27464 switch(constants[i].type) {
27465 case SWIG_PY_POINTER:
27466 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27468 case SWIG_PY_BINARY:
27469 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27476 PyDict_SetItemString(d, constants[i].name, obj);
27487 SWIG_Python_FixMethods(PyMethodDef *methods,
27492 for (i = 0; methods[i].ml_name; ++i) {
27493 const char *c = methods[i].ml_doc;
27495 c = strstr(c,
"swig_ptr: ");
27499 const char *name = c + 10;
27500 for (j = 0; const_table[j].type; ++j) {
27501 if (strncmp(const_table[j].name, name,
27502 strlen(const_table[j].name)) == 0) {
27503 ci = &(const_table[j]);
27508 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27510 size_t shift = (ci->ptype) - types;
27512 size_t ldoc = (c - methods[i].ml_doc);
27513 size_t lptr = strlen(ty->name)+2*
sizeof(
void*)+2;
27514 char *ndoc = (
char*)malloc(ldoc + lptr + 10);
27517 strncpy(buff, methods[i].ml_doc, ldoc);
27519 strncpy(buff,
"swig_ptr: ", 10);
27521 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27522 methods[i].ml_doc = ndoc;
27543 #if PY_VERSION_HEX >= 0x03000000 27549 PyObject *m, *d, *md;
27550 #if PY_VERSION_HEX >= 0x03000000 27551 static struct PyModuleDef SWIG_module = {
27552 # if PY_VERSION_HEX >= 0x03020000 27553 PyModuleDef_HEAD_INIT,
27556 PyObject_HEAD_INIT(NULL)
27562 (
char *) SWIG_name,
27573 #if defined(SWIGPYTHON_BUILTIN) 27575 0, 0, 0, 0, 0, 0, 0
27577 static PyGetSetDef this_getset_def = {
27578 (
char *)
"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
27580 static SwigPyGetSet thisown_getset_closure = {
27581 (PyCFunction) SwigPyObject_own,
27582 (PyCFunction) SwigPyObject_own
27584 static PyGetSetDef thisown_getset_def = {
27585 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
27587 PyObject *metatype_args;
27588 PyTypeObject *builtin_pytype;
27589 int builtin_base_count;
27592 PyGetSetDescrObject *static_getset;
27593 PyTypeObject *metatype;
27595 PyObject *public_interface, *public_symbol;
27596 PyObject *this_descr;
27597 PyObject *thisown_descr;
27598 PyObject *
self = 0;
27601 (void)builtin_pytype;
27602 (void)builtin_base_count;
27603 (void)builtin_basetype;
27605 (void)static_getset;
27609 metatype_args = Py_BuildValue(
"(s(O){})",
"SwigPyObjectType", &PyType_Type);
27610 assert(metatype_args);
27611 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
27613 Py_DECREF(metatype_args);
27614 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
27615 assert(PyType_Ready(metatype) >= 0);
27619 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27621 #if PY_VERSION_HEX >= 0x03000000 27622 m = PyModule_Create(&SWIG_module);
27624 m = Py_InitModule((
char *) SWIG_name, SwigMethods);
27627 md = d = PyModule_GetDict(m);
27630 SWIG_InitializeModule(0);
27632 #ifdef SWIGPYTHON_BUILTIN 27633 SwigPyObject_stype = SWIG_MangledTypeQuery(
"_p_SwigPyObject");
27634 assert(SwigPyObject_stype);
27637 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
27638 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
27639 }
else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
27640 PyErr_SetString(PyExc_RuntimeError,
"Import error: attempted to load two incompatible swig-generated modules.");
27641 # if PY_VERSION_HEX >= 0x03000000 27649 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
27653 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
27654 (void)thisown_descr;
27656 public_interface = PyList_New(0);
27658 (void)public_symbol;
27660 PyDict_SetItemString(md,
"__all__", public_interface);
27661 Py_DECREF(public_interface);
27662 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
27663 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
27664 for (i = 0; swig_const_table[i].name != 0; ++i)
27665 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
27668 SWIG_InstallConstants(d,swig_const_table);
27670 SWIG_Python_SetConstant(d,
"ADD4",SWIG_From_int(static_cast< int >(libbgp::ADD4)));
27671 SWIG_Python_SetConstant(d,
"WITHDRAW4",SWIG_From_int(static_cast< int >(libbgp::WITHDRAW4)));
27672 SWIG_Python_SetConstant(d,
"ADD6",SWIG_From_int(static_cast< int >(libbgp::ADD6)));
27673 SWIG_Python_SetConstant(d,
"WITHDRAW6",SWIG_From_int(static_cast< int >(libbgp::WITHDRAW6)));
27674 SWIG_Python_SetConstant(d,
"COLLISION",SWIG_From_int(static_cast< int >(libbgp::COLLISION)));
27675 SWIG_Python_SetConstant(d,
"IPV4",SWIG_From_int(static_cast< int >(libbgp::IPV4)));
27676 SWIG_Python_SetConstant(d,
"IPV6",SWIG_From_int(static_cast< int >(libbgp::IPV6)));
27677 SWIG_Python_SetConstant(d,
"UNICAST",SWIG_From_int(static_cast< int >(libbgp::UNICAST)));
27678 SWIG_Python_SetConstant(d,
"MULTICAST",SWIG_From_int(static_cast< int >(libbgp::MULTICAST)));
27679 SWIG_Python_SetConstant(d,
"UNICAST_AND_MULTICAST",SWIG_From_int(static_cast< int >(libbgp::UNICAST_AND_MULTICAST)));
27680 SWIG_Python_SetConstant(d,
"MP_BGP",SWIG_From_int(static_cast< int >(libbgp::MP_BGP)));
27681 SWIG_Python_SetConstant(d,
"ROUTE_REFRESH",SWIG_From_int(static_cast< int >(libbgp::ROUTE_REFRESH)));
27682 SWIG_Python_SetConstant(d,
"ORF",SWIG_From_int(static_cast< int >(libbgp::ORF)));
27683 SWIG_Python_SetConstant(d,
"EXTENDED_NEXTHOP",SWIG_From_int(static_cast< int >(libbgp::EXTENDED_NEXTHOP)));
27684 SWIG_Python_SetConstant(d,
"BGPSEC",SWIG_From_int(static_cast< int >(libbgp::BGPSEC)));
27685 SWIG_Python_SetConstant(d,
"MULTIPLE_LABELS",SWIG_From_int(static_cast< int >(libbgp::MULTIPLE_LABELS)));
27686 SWIG_Python_SetConstant(d,
"GRACEFUL_RESTART",SWIG_From_int(static_cast< int >(libbgp::GRACEFUL_RESTART)));
27687 SWIG_Python_SetConstant(d,
"ASN_4B",SWIG_From_int(static_cast< int >(libbgp::ASN_4B)));
27688 SWIG_Python_SetConstant(d,
"ADD_PATH",SWIG_From_int(static_cast< int >(libbgp::ADD_PATH)));
27689 SWIG_Python_SetConstant(d,
"ENHANCED_ROUTE_REFRESH",SWIG_From_int(static_cast< int >(libbgp::ENHANCED_ROUTE_REFRESH)));
27690 SWIG_Python_SetConstant(d,
"F_ROUTE",SWIG_From_int(static_cast< int >(
libbgp::F_ROUTE)));
27691 SWIG_Python_SetConstant(d,
"F_AS_PATH",SWIG_From_int(static_cast< int >(
libbgp::F_AS_PATH)));
27692 SWIG_Python_SetConstant(d,
"F_COMMUNITY",SWIG_From_int(static_cast< int >(
libbgp::F_COMMUNITY)));
27693 SWIG_Python_SetConstant(d,
"M_EQ",SWIG_From_int(static_cast< int >(
libbgp::M_EQ)));
27694 SWIG_Python_SetConstant(d,
"M_NE",SWIG_From_int(static_cast< int >(
libbgp::M_NE)));
27695 SWIG_Python_SetConstant(d,
"M_GT",SWIG_From_int(static_cast< int >(
libbgp::M_GT)));
27696 SWIG_Python_SetConstant(d,
"M_LT",SWIG_From_int(static_cast< int >(
libbgp::M_LT)));
27697 SWIG_Python_SetConstant(d,
"M_GE",SWIG_From_int(static_cast< int >(
libbgp::M_GE)));
27698 SWIG_Python_SetConstant(d,
"M_LE",SWIG_From_int(static_cast< int >(
libbgp::M_LE)));
27699 SWIG_Python_SetConstant(d,
"M_HAS_ASN",SWIG_From_int(static_cast< int >(
libbgp::M_HAS_ASN)));
27700 SWIG_Python_SetConstant(d,
"M_NOT_HAS_ASN",SWIG_From_int(static_cast< int >(
libbgp::M_NOT_HAS_ASN)));
27701 SWIG_Python_SetConstant(d,
"M_FROM_ASN",SWIG_From_int(static_cast< int >(
libbgp::M_FROM_ASN)));
27705 SWIG_Python_SetConstant(d,
"NOP",SWIG_From_int(static_cast< int >(
libbgp::NOP)));
27706 SWIG_Python_SetConstant(d,
"ACCEPT",SWIG_From_int(static_cast< int >(
libbgp::ACCEPT)));
27707 SWIG_Python_SetConstant(d,
"REJECT",SWIG_From_int(static_cast< int >(
libbgp::REJECT)));
27708 SWIG_Python_SetConstant(d,
"NO_EXPORT",SWIG_From_int(static_cast< int >(libbgp::NO_EXPORT)));
27709 SWIG_Python_SetConstant(d,
"NO_ADVERTISE",SWIG_From_int(static_cast< int >(libbgp::NO_ADVERTISE)));
27710 SWIG_Python_SetConstant(d,
"NO_EXPORT_SUBCONFED",SWIG_From_int(static_cast< int >(libbgp::NO_EXPORT_SUBCONFED)));
27711 PyDict_SetItemString(md,(
char*)
"cvar", SWIG_globals());
27712 SWIG_addvarlink(SWIG_globals(),(
char*)
"bgp_error_code_str",Swig_var_bgp_error_code_str_get, Swig_var_bgp_error_code_str_set);
27713 SWIG_addvarlink(SWIG_globals(),(
char*)
"bgp_header_error_subcode_str",Swig_var_bgp_header_error_subcode_str_get, Swig_var_bgp_header_error_subcode_str_set);
27714 SWIG_addvarlink(SWIG_globals(),(
char*)
"bgp_open_error_subcode_str",Swig_var_bgp_open_error_subcode_str_get, Swig_var_bgp_open_error_subcode_str_set);
27715 SWIG_addvarlink(SWIG_globals(),(
char*)
"bgp_update_error_str",Swig_var_bgp_update_error_str_get, Swig_var_bgp_update_error_str_set);
27716 SWIG_addvarlink(SWIG_globals(),(
char*)
"bgp_fsm_error_str",Swig_var_bgp_fsm_error_str_get, Swig_var_bgp_fsm_error_str_set);
27717 SWIG_addvarlink(SWIG_globals(),(
char*)
"bgp_cease_error_str",Swig_var_bgp_cease_error_str_get, Swig_var_bgp_cease_error_str_set);
27718 SWIG_Python_SetConstant(d,
"E_UNSPEC",SWIG_From_int(static_cast< int >(libbgp::E_UNSPEC)));
27719 SWIG_Python_SetConstant(d,
"E_HEADER",SWIG_From_int(static_cast< int >(libbgp::E_HEADER)));
27720 SWIG_Python_SetConstant(d,
"E_OPEN",SWIG_From_int(static_cast< int >(libbgp::E_OPEN)));
27721 SWIG_Python_SetConstant(d,
"E_UPDATE",SWIG_From_int(static_cast< int >(libbgp::E_UPDATE)));
27722 SWIG_Python_SetConstant(d,
"E_HOLD",SWIG_From_int(static_cast< int >(libbgp::E_HOLD)));
27723 SWIG_Python_SetConstant(d,
"E_FSM",SWIG_From_int(static_cast< int >(libbgp::E_FSM)));
27724 SWIG_Python_SetConstant(d,
"E_CEASE",SWIG_From_int(static_cast< int >(libbgp::E_CEASE)));
27725 SWIG_Python_SetConstant(d,
"E_UNSPEC_HEADER",SWIG_From_int(static_cast< int >(libbgp::E_UNSPEC_HEADER)));
27726 SWIG_Python_SetConstant(d,
"E_SYNC",SWIG_From_int(static_cast< int >(libbgp::E_SYNC)));
27727 SWIG_Python_SetConstant(d,
"E_LENGTH",SWIG_From_int(static_cast< int >(libbgp::E_LENGTH)));
27728 SWIG_Python_SetConstant(d,
"E_TYPE",SWIG_From_int(static_cast< int >(libbgp::E_TYPE)));
27729 SWIG_Python_SetConstant(d,
"E_UNSPEC_OPEN",SWIG_From_int(static_cast< int >(libbgp::E_UNSPEC_OPEN)));
27730 SWIG_Python_SetConstant(d,
"E_VERSION",SWIG_From_int(static_cast< int >(libbgp::E_VERSION)));
27731 SWIG_Python_SetConstant(d,
"E_PEER_AS",SWIG_From_int(static_cast< int >(libbgp::E_PEER_AS)));
27732 SWIG_Python_SetConstant(d,
"E_BGP_ID",SWIG_From_int(static_cast< int >(libbgp::E_BGP_ID)));
27733 SWIG_Python_SetConstant(d,
"E_OPT_PARAM",SWIG_From_int(static_cast< int >(libbgp::E_OPT_PARAM)));
27734 SWIG_Python_SetConstant(d,
"E_AUTH_FAILED",SWIG_From_int(static_cast< int >(libbgp::E_AUTH_FAILED)));
27735 SWIG_Python_SetConstant(d,
"E_HOLD_TIME",SWIG_From_int(static_cast< int >(libbgp::E_HOLD_TIME)));
27736 SWIG_Python_SetConstant(d,
"E_CAPABILITY",SWIG_From_int(static_cast< int >(libbgp::E_CAPABILITY)));
27737 SWIG_Python_SetConstant(d,
"E_UNSPEC_UPDATE",SWIG_From_int(static_cast< int >(libbgp::E_UNSPEC_UPDATE)));
27738 SWIG_Python_SetConstant(d,
"E_ATTR_LIST",SWIG_From_int(static_cast< int >(libbgp::E_ATTR_LIST)));
27739 SWIG_Python_SetConstant(d,
"E_BAD_WELL_KNOWN",SWIG_From_int(static_cast< int >(libbgp::E_BAD_WELL_KNOWN)));
27740 SWIG_Python_SetConstant(d,
"E_MISS_WELL_KNOWN",SWIG_From_int(static_cast< int >(libbgp::E_MISS_WELL_KNOWN)));
27741 SWIG_Python_SetConstant(d,
"E_ATTR_FLAG",SWIG_From_int(static_cast< int >(libbgp::E_ATTR_FLAG)));
27742 SWIG_Python_SetConstant(d,
"E_ATTR_LEN",SWIG_From_int(static_cast< int >(libbgp::E_ATTR_LEN)));
27743 SWIG_Python_SetConstant(d,
"E_ORIGIN",SWIG_From_int(static_cast< int >(libbgp::E_ORIGIN)));
27744 SWIG_Python_SetConstant(d,
"E_AS_LOOP",SWIG_From_int(static_cast< int >(libbgp::E_AS_LOOP)));
27745 SWIG_Python_SetConstant(d,
"E_NEXT_HOP",SWIG_From_int(static_cast< int >(libbgp::E_NEXT_HOP)));
27746 SWIG_Python_SetConstant(d,
"E_OPT_ATTR",SWIG_From_int(static_cast< int >(libbgp::E_OPT_ATTR)));
27747 SWIG_Python_SetConstant(d,
"E_NETFIELD",SWIG_From_int(static_cast< int >(libbgp::E_NETFIELD)));
27748 SWIG_Python_SetConstant(d,
"E_AS_PATH",SWIG_From_int(static_cast< int >(libbgp::E_AS_PATH)));
27749 SWIG_Python_SetConstant(d,
"E_UNSPEC_FSM",SWIG_From_int(static_cast< int >(libbgp::E_UNSPEC_FSM)));
27750 SWIG_Python_SetConstant(d,
"E_OPEN_SENT",SWIG_From_int(static_cast< int >(libbgp::E_OPEN_SENT)));
27751 SWIG_Python_SetConstant(d,
"E_OPEN_CONFIRM",SWIG_From_int(static_cast< int >(libbgp::E_OPEN_CONFIRM)));
27752 SWIG_Python_SetConstant(d,
"E_ESTABLISHED",SWIG_From_int(static_cast< int >(libbgp::E_ESTABLISHED)));
27753 SWIG_Python_SetConstant(d,
"E_UNSPEC_CEASE",SWIG_From_int(static_cast< int >(libbgp::E_UNSPEC_CEASE)));
27754 SWIG_Python_SetConstant(d,
"E_MAX_PREFIX",SWIG_From_int(static_cast< int >(libbgp::E_MAX_PREFIX)));
27755 SWIG_Python_SetConstant(d,
"E_SHUTDOWN",SWIG_From_int(static_cast< int >(libbgp::E_SHUTDOWN)));
27756 SWIG_Python_SetConstant(d,
"E_DECONF",SWIG_From_int(static_cast< int >(libbgp::E_DECONF)));
27757 SWIG_Python_SetConstant(d,
"E_RESET",SWIG_From_int(static_cast< int >(libbgp::E_RESET)));
27758 SWIG_Python_SetConstant(d,
"E_REJECT",SWIG_From_int(static_cast< int >(libbgp::E_REJECT)));
27759 SWIG_Python_SetConstant(d,
"E_CONFGCHANGE",SWIG_From_int(static_cast< int >(libbgp::E_CONFGCHANGE)));
27760 SWIG_Python_SetConstant(d,
"E_COLLISION",SWIG_From_int(static_cast< int >(libbgp::E_COLLISION)));
27761 SWIG_Python_SetConstant(d,
"E_RESOURCES",SWIG_From_int(static_cast< int >(libbgp::E_RESOURCES)));
27762 SWIG_Python_SetConstant(d,
"BGP_FSM_BUFFER_SIZE",SWIG_From_int(static_cast< int >(4096)));
27763 SWIG_Python_SetConstant(d,
"IDLE",SWIG_From_int(static_cast< int >(libbgp::IDLE)));
27764 SWIG_Python_SetConstant(d,
"OPEN_SENT",SWIG_From_int(static_cast< int >(libbgp::OPEN_SENT)));
27765 SWIG_Python_SetConstant(d,
"OPEN_CONFIRM",SWIG_From_int(static_cast< int >(libbgp::OPEN_CONFIRM)));
27766 SWIG_Python_SetConstant(d,
"ESTABLISHED",SWIG_From_int(static_cast< int >(libbgp::ESTABLISHED)));
27767 SWIG_Python_SetConstant(d,
"BROKEN",SWIG_From_int(static_cast< int >(libbgp::BROKEN)));
27768 SWIG_Python_SetConstant(d,
"FATAL",SWIG_From_int(static_cast< int >(libbgp::FATAL)));
27769 SWIG_Python_SetConstant(d,
"ERROR",SWIG_From_int(static_cast< int >(libbgp::ERROR)));
27770 SWIG_Python_SetConstant(d,
"WARN",SWIG_From_int(static_cast< int >(libbgp::WARN)));
27771 SWIG_Python_SetConstant(d,
"INFO",SWIG_From_int(static_cast< int >(libbgp::INFO)));
27772 SWIG_Python_SetConstant(d,
"DEBUG",SWIG_From_int(static_cast< int >(libbgp::DEBUG)));
27773 SWIG_Python_SetConstant(d,
"OPEN",SWIG_From_int(static_cast< int >(libbgp::OPEN)));
27774 SWIG_Python_SetConstant(d,
"UPDATE",SWIG_From_int(static_cast< int >(libbgp::UPDATE)));
27775 SWIG_Python_SetConstant(d,
"NOTIFICATION",SWIG_From_int(static_cast< int >(libbgp::NOTIFICATION)));
27776 SWIG_Python_SetConstant(d,
"KEEPALIVE",SWIG_From_int(static_cast< int >(libbgp::KEEPALIVE)));
27777 SWIG_Python_SetConstant(d,
"UNKNOW",SWIG_From_int(static_cast< int >(libbgp::UNKNOW)));
27778 SWIG_Python_SetConstant(d,
"RESERVED",SWIG_From_int(static_cast< int >(libbgp::RESERVED)));
27779 SWIG_Python_SetConstant(d,
"ORIGIN",SWIG_From_int(static_cast< int >(libbgp::ORIGIN)));
27780 SWIG_Python_SetConstant(d,
"AS_PATH",SWIG_From_int(static_cast< int >(libbgp::AS_PATH)));
27781 SWIG_Python_SetConstant(d,
"NEXT_HOP",SWIG_From_int(static_cast< int >(libbgp::NEXT_HOP)));
27782 SWIG_Python_SetConstant(d,
"MULTI_EXIT_DISC",SWIG_From_int(static_cast< int >(libbgp::MULTI_EXIT_DISC)));
27783 SWIG_Python_SetConstant(d,
"LOCAL_PREF",SWIG_From_int(static_cast< int >(libbgp::LOCAL_PREF)));
27784 SWIG_Python_SetConstant(d,
"ATOMIC_AGGREGATE",SWIG_From_int(static_cast< int >(libbgp::ATOMIC_AGGREGATE)));
27785 SWIG_Python_SetConstant(d,
"AGGREATOR",SWIG_From_int(static_cast< int >(libbgp::AGGREATOR)));
27786 SWIG_Python_SetConstant(d,
"COMMUNITY",SWIG_From_int(static_cast< int >(libbgp::COMMUNITY)));
27787 SWIG_Python_SetConstant(d,
"MP_REACH_NLRI",SWIG_From_int(static_cast< int >(libbgp::MP_REACH_NLRI)));
27788 SWIG_Python_SetConstant(d,
"MP_UNREACH_NLRI",SWIG_From_int(static_cast< int >(libbgp::MP_UNREACH_NLRI)));
27789 SWIG_Python_SetConstant(d,
"AS4_PATH",SWIG_From_int(static_cast< int >(libbgp::AS4_PATH)));
27790 SWIG_Python_SetConstant(d,
"AS4_AGGREGATOR",SWIG_From_int(static_cast< int >(libbgp::AS4_AGGREGATOR)));
27791 SWIG_Python_SetConstant(d,
"IGP",SWIG_From_int(static_cast< int >(libbgp::IGP)));
27792 SWIG_Python_SetConstant(d,
"EGP",SWIG_From_int(static_cast< int >(libbgp::EGP)));
27793 SWIG_Python_SetConstant(d,
"INCOMPLETE",SWIG_From_int(static_cast< int >(libbgp::INCOMPLETE)));
27794 SWIG_Python_SetConstant(d,
"AS_SET",SWIG_From_int(static_cast< int >(libbgp::AS_SET)));
27795 SWIG_Python_SetConstant(d,
"AS_SEQUENCE",SWIG_From_int(static_cast< int >(libbgp::AS_SEQUENCE)));
27796 #if PY_VERSION_HEX >= 0x03000000 LogLevel
Log levels for logger (BgpLogHandler)
GetTypeFromBuffer
Get type of attribute from buffer.
RouteEventType
Type of route events.
Atomic aggregate attribute.
Includes
Test if an address is inside a prefix.
IPv6 Route/Prefix related utilities.
bool restoreAsPath()
Restore the AS_PATH attribute to four octets ASN flavor.
The BgpRib4 (IPv4 BGP Routing Information Base) class.
const char * bgp_error_code_str[7]
Error strings for BGP error codes.
The BGP FSM output handler.
The BgpOpenMessage class.
ssize_t length() const
Get size in bytes required to serialize the object.
virtual ssize_t length() const
Get size in bytes required to serialize the object.
MP-BGP ReachNlri IPv6 NLRI class.
The BGP Finite State Machine.
int stop()
Stop the FSM. (Any -> Idle)
Afi
Address Family Identifiers.
The BgpCapabilityMpBgp class.
size_t getCount() const
Get number of ASNs in the segment.
ssize_t length() const
Get size in bytes required to serialize the object.
MP-BGP UnreachNlri container for unknow AFI/SAFI.
BgpFilterOP
The filter operation.
ssize_t length() const
Get size in bytes required to serialize the object.
The base of BGP RIB entry.
The BgpCapabilityUnknow class.
The BgpCapability base class.
The AS_PATH filtering rule.
BgpFilterRuleRouteMatchType
Matching type of IP prefix rule.
The BgpNotificationMessage object.
ssize_t length() const
Get size in bytes required to serialize the object.
Probe for collision detection.
The IPv4 route filtering rule.
bool cidr_to_mask6(uint8_t src, uint8_t dst[16])
Convert IPv6 mask in CIDR notation to bytes array.
The serializable base class.
ssize_t length() const
Get size in bytes required to serialize the object.
AS4_AGGREGATOR attribute.
The BgpCapability4BytesAsn class.
The base of BgpFilterRule.
BgpState
BGP Finite State Machine status.
BgpFilterRuleCommunityMatchType
Matching type of COMMUNITY rule.
uint8_t nexthop_global[16]
Global IPv6 address of the next hop in network btyes order.
bool downgradeAggregator()
Downgrade aggregator to two octets.
uint32_t cidr_to_mask(uint8_t cidr)
Convert netmask in CIDR notation to network bytes integer.
uint8_t default_nexthop6_global[16]
The default global IPv6 nexthop to use.
bool restoreAggregator()
Restore aggregator attribute from as4_aggregator.
ssize_t length() const
Get size in bytes required to serialize the object.
ssize_t length() const
Get size in bytes required to serialize the object.
const char * bgp_fsm_error_str[4]
Error strings for BGP FSM error subcodes.
File descriptor out handler.
The BgpMessage base class.
const char * bgp_cease_error_str[9]
Error strings for BGP cease error subcodes.
IPv4 Route/Prefix related utilities.
bool v6addr_is_zero(const uint8_t prefix[16])
Test if a IPv6 addresss is all zero.
ssize_t length() const
Get size in bytes required to serialize the object.
The BgpRib6 (IPv6 BGP Routing Information Base) class.
The BgpKeepaliveMessage class.
uint8_t default_nexthop6_linklocal[16]
The default link-local IPv6 nexthop to use.
const char * bgp_open_error_subcode_str[8]
Error strings for BGP open message error subcodes.
A Clock implementation to use system time as time.
bool mask_ipv6(const uint8_t prefix[16], uint8_t mask, uint8_t masked_addr[16])
Mask a IPv6 address with given netmask.
MP-BGP Reach/Unreach NLRI base class.
ssize_t length() const
Get size in bytes required to serialize the object.
The BGP FSM configuration object.
int start()
send OPEN message to peer. (IDLE -> OpenSent)
bool dropNonTransitive()
Drop all non-transitive attributes from the update message.
Route/Prefix related utilities.
An AS_PATH or AS4_PATH segment.
BgpFilterRuleAsPathMatchType
Matching type of AS_PATH rule.
const char * bgp_update_error_str[12]
Error strings for BGP update message error subcodes.
The prefix filtering rule.
The RouteEventReceiver interface.
size_t getBytesInSink() const
Get amount to data in sink.
The BGP filtering rules set.
Multi Exit Discriminator attribute.
ssize_t length() const
Get size in bytes required to serialize the object.
ssize_t length() const
Get size in bytes required to serialize the object.
const char * bgp_header_error_subcode_str[4]
Error strings for BGP header error subcodes.
ssize_t length() const
Get size in bytes required to serialize the object.
The IPv6 route filtering rule.
Includes
Test if an address is inside a prefix.
uint8_t nexthop_linklocal[16]
Link local IPv6 address of the next hop in network btyes order. (all 0 if not avaliable) ...
MP-BGP ReachNlri container for unknow AFI/SAFI.
bool downgradeAsPath()
Downgrade the AS_PATH to two octets flavor.
int resetSoft()
Perform a soft reset.
int tick()
Tick the clock (Check for time-based events)
The BgpUpdateMessage class.
MP-BGP UnreachNlri IPv6 class.
ssize_t length() const
Get size in bytes required to serialize the object.